1
0
mirror of https://github.com/postgres/postgres.git synced 2026-01-26 09:41:40 +03:00

Update typedefs.list to match what the buildfarm currently reports.

The current list from the buildfarm includes quite a few typedef
names that it used to miss.  The reason is a bit obscure, but it
seems likely to have something to do with our recent increased
use of palloc_object and palloc_array.  In any case, this makes
the relevant struct declarations be much more nicely formatted,
so I'll take it.  Install the current list and re-run pgindent
to update affected code.

Syncing with the current list also removes some obsolete
typedef names and fixes some alphabetization errors.

Discussion: https://postgr.es/m/1681301.1765742268@sss.pgh.pa.us
This commit is contained in:
Tom Lane
2025-12-14 17:03:53 -05:00
parent 66b2282b0c
commit 58dad7f349
15 changed files with 46 additions and 29 deletions

View File

@@ -373,7 +373,7 @@ typedef struct GinScanEntryData
bool reduceResult;
uint32 predictNumberResult;
GinBtreeData btree;
} GinScanEntryData;
} GinScanEntryData;
typedef struct GinScanOpaqueData
{

View File

@@ -106,7 +106,7 @@ typedef struct BitmapHeapScanDescData
HeapScanDescData rs_heap_base;
/* Holds no data */
} BitmapHeapScanDescData;
} BitmapHeapScanDescData;
typedef struct BitmapHeapScanDescData *BitmapHeapScanDesc;
/*

View File

@@ -191,7 +191,7 @@ typedef struct IndexScanDescData
/* parallel index scan information, in shared memory */
struct ParallelIndexScanDescData *parallel_scan;
} IndexScanDescData;
} IndexScanDescData;
/* Generic structure for parallel scans */
typedef struct ParallelIndexScanDescData
@@ -214,6 +214,6 @@ typedef struct SysScanDescData
struct IndexScanDescData *iscan; /* only valid in index-scan case */
struct SnapshotData *snapshot; /* snapshot to unregister at end of scan */
struct TupleTableSlot *slot;
} SysScanDescData;
} SysScanDescData;
#endif /* RELSCAN_H */

View File

@@ -173,7 +173,7 @@ typedef struct AggStatePerTransData
FunctionCallInfo serialfn_fcinfo;
FunctionCallInfo deserialfn_fcinfo;
} AggStatePerTransData;
} AggStatePerTransData;
/*
* AggStatePerAggData - per-aggregate information
@@ -229,7 +229,7 @@ typedef struct AggStatePerAggData
* aggregates because the final function is read-write.
*/
bool shareable;
} AggStatePerAggData;
} AggStatePerAggData;
/*
* AggStatePerGroupData - per-aggregate-per-group working state
@@ -264,7 +264,7 @@ typedef struct AggStatePerGroupData
* NULL and not auto-replace it with a later input value. Only the first
* non-NULL input will be auto-substituted.
*/
} AggStatePerGroupData;
} AggStatePerGroupData;
/*
* AggStatePerPhaseData - per-grouping-set-phase state
@@ -297,7 +297,7 @@ typedef struct AggStatePerPhaseData
*----------
*/
ExprState *evaltrans_cache[2][2];
} AggStatePerPhaseData;
} AggStatePerPhaseData;
/*
* AggStatePerHashData - per-hashtable state
@@ -319,7 +319,7 @@ typedef struct AggStatePerHashData
AttrNumber *hashGrpColIdxInput; /* hash col indices in input slot */
AttrNumber *hashGrpColIdxHash; /* indices in hash table tuples */
Agg *aggnode; /* original Agg node, for numGroups etc. */
} AggStatePerHashData;
} AggStatePerHashData;
extern AggState *ExecInitAgg(Agg *node, EState *estate, int eflags);

View File

@@ -882,7 +882,7 @@ typedef struct TupleHashTableData
ExprState *in_hash_expr; /* ExprState for hashing input datatype(s) */
ExprState *cur_eq_func; /* comparator for input vs. table */
ExprContext *exprcontext; /* expression context */
} TupleHashTableData;
} TupleHashTableData;
typedef tuplehash_iterator TupleHashIterator;

View File

@@ -639,7 +639,7 @@ typedef struct PartitionSchemeData
/* Cached information about partition comparison functions. */
struct FmgrInfo *partsupfunc;
} PartitionSchemeData;
} PartitionSchemeData;
typedef struct PartitionSchemeData *PartitionScheme;

View File

@@ -90,7 +90,7 @@ typedef struct SkipSupportData
*/
SkipSupportIncDec decrement;
SkipSupportIncDec increment;
} SkipSupportData;
} SkipSupportData;
extern SkipSupport PrepareSkipSupportFromOpclass(Oid opfamily, Oid opcintype,
bool reverse);

View File

@@ -57,7 +57,7 @@ typedef struct SortCoordinateData
/* Private opaque state (points to shared memory) */
Sharedsort *sharedsort;
} SortCoordinateData;
} SortCoordinateData;
typedef struct SortCoordinateData *SortCoordinate;