PostgreSQL Source Code git master
Loading...
Searching...
No Matches
gin_private.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------------
2 * gin_private.h
3 * header file for postgres inverted index access method implementation.
4 *
5 * Copyright (c) 2006-2026, PostgreSQL Global Development Group
6 *
7 * src/include/access/gin_private.h
8 *--------------------------------------------------------------------------
9 */
10#ifndef GIN_PRIVATE_H
11#define GIN_PRIVATE_H
12
13#include "access/amapi.h"
14#include "access/gin.h"
15#include "access/ginblock.h"
16#include "access/htup_details.h"
17#include "access/itup.h"
18#include "common/int.h"
19#include "catalog/pg_am_d.h"
20#include "fmgr.h"
21#include "lib/rbtree.h"
22#include "storage/bufmgr.h"
23
24/*
25 * Storage type for GIN's reloptions
26 */
27typedef struct GinOptions
28{
29 int32 vl_len_; /* varlena header (do not touch directly!) */
30 bool useFastUpdate; /* use fast updates? */
31 int pendingListCleanupSize; /* maximum size of pending list */
33
34#define GIN_DEFAULT_USE_FASTUPDATE true
35#define GinGetUseFastUpdate(relation) \
36 (AssertMacro(relation->rd_rel->relkind == RELKIND_INDEX && \
37 relation->rd_rel->relam == GIN_AM_OID), \
38 (relation)->rd_options ? \
39 ((GinOptions *) (relation)->rd_options)->useFastUpdate : GIN_DEFAULT_USE_FASTUPDATE)
40#define GinGetPendingListCleanupSize(relation) \
41 (AssertMacro(relation->rd_rel->relkind == RELKIND_INDEX && \
42 relation->rd_rel->relam == GIN_AM_OID), \
43 (relation)->rd_options && \
44 ((GinOptions *) (relation)->rd_options)->pendingListCleanupSize != -1 ? \
45 ((GinOptions *) (relation)->rd_options)->pendingListCleanupSize : \
46 gin_pending_list_limit)
47
48
49/* Macros for buffer lock/unlock operations */
50#define GIN_UNLOCK BUFFER_LOCK_UNLOCK
51#define GIN_SHARE BUFFER_LOCK_SHARE
52#define GIN_EXCLUSIVE BUFFER_LOCK_EXCLUSIVE
53
54
55/*
56 * GinState: working data structure describing the index being worked on
57 */
58typedef struct GinState
59{
61 bool oneCol; /* true if single-column index */
62
63 /*
64 * origTupdesc is the nominal tuple descriptor of the index, ie, the i'th
65 * attribute shows the key type (not the input data type!) of the i'th
66 * index column. In a single-column index this describes the actual leaf
67 * index tuples. In a multi-column index, the actual leaf tuples contain
68 * a smallint column number followed by a key datum of the appropriate
69 * type for that column. We set up tupdesc[i] to describe the actual
70 * rowtype of the index tuples for the i'th column, ie, (int2, keytype).
71 * Note that in any case, leaf tuples contain more data than is known to
72 * the TupleDesc; see access/gin/README for details.
73 */
76
77 /*
78 * Per-index-column opclass support functions
79 */
86 /* canPartialMatch[i] is true if comparePartialFn[i] is valid */
88 /* Collations to pass to the support functions */
91
92
93/* ginutil.c */
94extern bytea *ginoptions(Datum reloptions, bool validate);
97extern void GinInitBuffer(Buffer b, uint32 f);
98extern void GinInitPage(Page page, uint32 f, Size pageSize);
99extern void GinInitMetabuffer(Buffer b);
101 Datum value, bool isNull,
102 int32 *nentries, GinNullCategory **categories);
103
105extern Datum gintuple_get_key(GinState *ginstate, IndexTuple tuple,
106 GinNullCategory *category);
107extern char *ginbuildphasename(int64 phasenum);
108
109/* gininsert.c */
111 struct IndexInfo *indexInfo);
112extern void ginbuildempty(Relation index);
113extern bool gininsert(Relation index, Datum *values, bool *isnull,
116 bool indexUnchanged,
117 struct IndexInfo *indexInfo);
118extern void ginEntryInsert(GinState *ginstate,
121 GinStatsData *buildStats);
122
123/* ginbtree.c */
124
125typedef struct GinBtreeStack
126{
131 /* predictNumber contains predicted number of pages on current level */
135
136typedef struct GinBtreeData *GinBtree;
137
138/* Return codes for GinBtreeData.beginPlaceToPage method */
145
177
178/* This represents a tuple to be inserted to entry tree. */
179typedef struct
180{
181 IndexTuple entry; /* tuple to insert */
182 bool isDelete; /* delete old tuple at same offset? */
184
185/*
186 * This represents an itempointer, or many itempointers, to be inserted to
187 * a data (posting tree) leaf page
188 */
195
196/*
197 * For internal data (posting tree) pages, the insertion payload is a
198 * PostingItem
199 */
200
201extern GinBtreeStack *ginFindLeafPage(GinBtree btree, bool searchMode,
202 bool rootConflictCheck);
203extern Buffer ginStepRight(Buffer buffer, Relation index, int lockmode);
204extern void freeGinBtreeStack(GinBtreeStack *stack);
205extern void ginInsertValue(GinBtree btree, GinBtreeStack *stack,
206 void *insertdata, GinStatsData *buildStats);
207
208/* ginentrypage.c */
209extern IndexTuple GinFormTuple(GinState *ginstate,
213 Datum key, GinNullCategory category,
214 GinState *ginstate);
217 IndexTuple itup, int *nitems);
218
219/* gindatapage.c */
221extern int GinDataLeafPageGetItemsToTbm(Page page, TIDBitmap *tbm);
224 GinStatsData *buildStats, Buffer entrybuffer);
226extern void GinPageDeletePostingItem(Page page, OffsetNumber offset);
227extern void ginInsertItemPointers(Relation index, BlockNumber rootBlkno,
229 GinStatsData *buildStats);
232
233/*
234 * This is declared in ginvacuum.c, but is passed between ginVacuumItemPointers
235 * and ginVacuumPostingTreeLeaf and as an opaque struct, so we need a forward
236 * declaration for it.
237 */
239
240extern void ginVacuumPostingTreeLeaf(Relation indexrel, Buffer buffer,
242
243/* ginscan.c */
244
245/*
246 * GinScanKeyData describes a single GIN index qualifier expression.
247 *
248 * From each qual expression, we extract one or more specific index search
249 * conditions, which are represented by GinScanEntryData. It's quite
250 * possible for identical search conditions to be requested by more than
251 * one qual expression, in which case we merge such conditions to have just
252 * one unique GinScanEntry --- this is particularly important for efficiency
253 * when dealing with full-index-scan entries. So there can be multiple
254 * GinScanKeyData.scanEntry pointers to the same GinScanEntryData.
255 *
256 * In each GinScanKeyData, nentries is the true number of entries, while
257 * nuserentries is the number that extractQueryFn returned (which is what
258 * we report to consistentFn). The "user" entries must come first.
259 */
261
263
264typedef struct GinScanKeyData
265{
266 /* Real number of entries in scanEntry[] (always > 0) */
268 /* Number of entries that extractQueryFn and consistentFn know about */
270
271 /* array of GinScanEntry pointers, one per extracted search condition */
273
274 /*
275 * At least one of the entries in requiredEntries must be present for a
276 * tuple to match the overall qual.
277 *
278 * additionalEntries contains entries that are needed by the consistent
279 * function to decide if an item matches, but are not sufficient to
280 * satisfy the qual without entries from requiredEntries.
281 */
286
287 /* array of check flags, reported to consistentFn */
294
295 /* other data needed for calling consistentFn */
297 /* NB: these three arrays have only nuserentries elements! */
304
305 /*
306 * An excludeOnly scan key is not able to enumerate all matching tuples.
307 * That is, to be semantically correct on its own, it would need to have a
308 * GIN_CAT_EMPTY_QUERY scanEntry, but it doesn't. Such a key can still be
309 * used to filter tuples returned by other scan keys, so we will get the
310 * right answers as long as there's at least one non-excludeOnly scan key
311 * for each index attribute considered by the search. For efficiency
312 * reasons we don't want to have unnecessary GIN_CAT_EMPTY_QUERY entries,
313 * so we will convert an excludeOnly scan key to non-excludeOnly (by
314 * adding a GIN_CAT_EMPTY_QUERY scanEntry) only if there are no other
315 * non-excludeOnly scan keys.
316 */
318
319 /*
320 * Match status data. curItem is the TID most recently tested (could be a
321 * lossy-page pointer). curItemMatches is true if it passes the
322 * consistentFn test; if so, recheckCurItem is the recheck flag.
323 * isFinished means that all the input entry streams are finished, so this
324 * key cannot succeed for any later TIDs.
325 */
331
332typedef struct GinScanEntryData
333{
334 /* query key and other information from extractQueryFn */
342
343 /* Current page in posting tree */
345
346 /* current ItemPointer to heap */
348
349 /* for a partial-match or full-scan query, we accumulate all TIDs here */
352
353 /*
354 * If blockno is InvalidBlockNumber, all of the other fields in the
355 * matchResult are meaningless.
356 */
360
361 /* used for Posting list and one page in Posting tree */
363 int nlist;
365
371
372typedef struct GinScanOpaqueData
373{
376
377 GinScanKey keys; /* one per scan qualifier expr */
379
380 GinScanEntry *entries; /* one per index search condition */
382 uint32 allocentries; /* allocated length of entries[] */
383
384 MemoryContext keyCtx; /* used to hold key and entry data */
385
386 bool isVoidRes; /* true if query is unsatisfiable */
388
390
391extern IndexScanDesc ginbeginscan(Relation rel, int nkeys, int norderbys);
392extern void ginendscan(IndexScanDesc scan);
393extern void ginrescan(IndexScanDesc scan, ScanKey scankey, int nscankeys,
394 ScanKey orderbys, int norderbys);
395extern void ginNewScanKey(IndexScanDesc scan);
396extern void ginFreeScanKeys(GinScanOpaque so);
397
398/* ginget.c */
399extern int64 gingetbitmap(IndexScanDesc scan, TIDBitmap *tbm);
400
401/* ginlogic.c */
402extern void ginInitConsistentFunction(GinState *ginstate, GinScanKey key);
403
404/* ginvacuum.c */
408 void *callback_state);
410 IndexBulkDeleteResult *stats);
412 ItemPointerData *items, int nitem, int *nremaining);
413
414/* ginvalidate.c */
415extern bool ginvalidate(Oid opclassoid);
417 Oid opclassoid,
418 List *operators,
419 List *functions);
420
421/* ginbulk.c */
433
443
444extern void ginInitBA(BuildAccumulator *accum);
445extern void ginInsertBAEntries(BuildAccumulator *accum,
447 Datum *entries, GinNullCategory *categories,
448 int32 nentries);
449extern void ginBeginBAScan(BuildAccumulator *accum);
451 OffsetNumber *attnum, Datum *key, GinNullCategory *category,
452 uint32 *n);
453
454/* ginfast.c */
455
463
464extern void ginHeapTupleFastInsert(GinState *ginstate,
466extern void ginHeapTupleFastCollect(GinState *ginstate,
468 OffsetNumber attnum, Datum value, bool isNull,
470extern void ginInsertCleanup(GinState *ginstate, bool full_clean,
471 bool fill_fsm, bool forceCleanup, IndexBulkDeleteResult *stats);
472
473/* ginpostinglist.c */
474
476 int maxsize, int *nwritten);
478
480 int *ndecoded_out);
484 int *nmerged);
485
486/*
487 * Merging the results of several gin scans compares item pointers a lot,
488 * so we want this to be inlined.
489 */
490static inline int
498
499/*
500 * Compare two keys of the same index column
501 */
502static inline int
506{
507 /* if not of same null category, sort by that first */
508 if (categorya != categoryb)
509 return (categorya < categoryb) ? -1 : 1;
510
511 /* all null items in same category are equal */
513 return 0;
514
515 /* both not null, so safe to call the compareFn */
516 return DatumGetInt32(FunctionCall2Coll(&ginstate->compareFn[attnum - 1],
517 ginstate->supportCollation[attnum - 1],
518 a, b));
519}
520
521/*
522 * Compare two keys of possibly different index columns
523 */
524static inline int
528{
529 /* attribute number is the first sort key */
530 if (attnuma != attnumb)
531 return (attnuma < attnumb) ? -1 : 1;
532
533 return ginCompareEntries(ginstate, attnuma, a, categorya, b, categoryb);
534
535}
536
537extern int ginTraverseLock(Buffer buffer, bool searchMode);
538
539#endif /* GIN_PRIVATE_H */
static bool validate(Port *port, const char *auth)
Definition auth-oauth.c:638
uint32 BlockNumber
Definition block.h:31
static Datum values[MAXATTR]
Definition bootstrap.c:155
int Buffer
Definition buf.h:23
PageData * Page
Definition bufpage.h:81
int64_t int64
Definition c.h:543
int32_t int32
Definition c.h:542
uint64_t uint64
Definition c.h:547
uint32_t uint32
Definition c.h:546
void * Pointer
Definition c.h:537
size_t Size
Definition c.h:619
Datum FunctionCall2Coll(FmgrInfo *flinfo, Oid collation, Datum arg1, Datum arg2)
Definition fmgr.c:1150
bool(* IndexBulkDeleteCallback)(ItemPointer itemptr, void *state)
Definition genam.h:93
IndexUniqueCheck
Definition genam.h:122
char GinTernaryValue
Definition gin.h:71
int ginTraverseLock(Buffer buffer, bool searchMode)
Definition ginbtree.c:39
IndexScanDesc ginbeginscan(Relation rel, int nkeys, int norderbys)
Definition ginscan.c:26
void freeGinBtreeStack(GinBtreeStack *stack)
Definition ginbtree.c:198
ItemPointer ginPostingListDecodeAllSegments(GinPostingList *segment, int len, int *ndecoded_out)
void ginBeginBAScan(BuildAccumulator *accum)
Definition ginbulk.c:256
void ginInsertValue(GinBtree btree, GinBtreeStack *stack, void *insertdata, GinStatsData *buildStats)
Definition ginbtree.c:816
GinScanOpaqueData * GinScanOpaque
void GinInitPage(Page page, uint32 f, Size pageSize)
Definition ginutil.c:344
bytea * ginoptions(Datum reloptions, bool validate)
Definition ginutil.c:570
int64 gingetbitmap(IndexScanDesc scan, TIDBitmap *tbm)
Definition ginget.c:1931
void ginInsertCleanup(GinState *ginstate, bool full_clean, bool fill_fsm, bool forceCleanup, IndexBulkDeleteResult *stats)
Definition ginfast.c:780
void ginHeapTupleFastCollect(GinState *ginstate, GinTupleCollector *collector, OffsetNumber attnum, Datum value, bool isNull, ItemPointer ht_ctid)
Definition ginfast.c:483
void ginFreeScanKeys(GinScanOpaque so)
Definition ginscan.c:237
ItemPointerData * ginGetBAEntry(BuildAccumulator *accum, OffsetNumber *attnum, Datum *key, GinNullCategory *category, uint32 *n)
Definition ginbulk.c:267
void ginEntryFillRoot(GinBtree btree, Page root, BlockNumber lblkno, Page lpage, BlockNumber rblkno, Page rpage)
static int ginCompareItemPointers(ItemPointer a, ItemPointer b)
OffsetNumber gintuple_get_attrnum(GinState *ginstate, IndexTuple tuple)
Definition ginutil.c:232
GinPostingList * ginCompressPostingList(const ItemPointerData *ipd, int nipd, int maxsize, int *nwritten)
Buffer GinNewBuffer(Relation index)
Definition ginutil.c:306
BlockNumber createPostingTree(Relation index, ItemPointerData *items, uint32 nitems, GinStatsData *buildStats, Buffer entrybuffer)
bool ginvalidate(Oid opclassoid)
Definition ginvalidate.c:31
int ginPostingListDecodeAllSegmentsToTbm(GinPostingList *ptr, int len, TIDBitmap *tbm)
void GinInitBuffer(Buffer b, uint32 f)
Definition ginutil.c:356
void ginEntryInsert(GinState *ginstate, OffsetNumber attnum, Datum key, GinNullCategory category, ItemPointerData *items, uint32 nitem, GinStatsData *buildStats)
Definition gininsert.c:346
void ginendscan(IndexScanDesc scan)
Definition ginscan.c:504
void ginNewScanKey(IndexScanDesc scan)
Definition ginscan.c:267
void ginInsertBAEntries(BuildAccumulator *accum, ItemPointer heapptr, OffsetNumber attnum, Datum *entries, GinNullCategory *categories, int32 nentries)
Definition ginbulk.c:209
Datum * ginExtractEntries(GinState *ginstate, OffsetNumber attnum, Datum value, bool isNull, int32 *nentries, GinNullCategory **categories)
Definition ginutil.c:451
GinBtreeStack * ginScanBeginPostingTree(GinBtree btree, Relation index, BlockNumber rootBlkno)
void ginrescan(IndexScanDesc scan, ScanKey scankey, int nscankeys, ScanKey orderbys, int norderbys)
Definition ginscan.c:491
void GinPageDeletePostingItem(Page page, OffsetNumber offset)
ItemPointer ginVacuumItemPointers(GinVacuumState *gvs, ItemPointerData *items, int nitem, int *nremaining)
Definition ginvacuum.c:47
void ginInitConsistentFunction(GinState *ginstate, GinScanKey key)
Definition ginlogic.c:227
GinPlaceToPageRC
@ GPTP_INSERT
@ GPTP_SPLIT
@ GPTP_NO_WORK
struct GinScanEntryData * GinScanEntry
static int ginCompareAttEntries(GinState *ginstate, OffsetNumber attnuma, Datum a, GinNullCategory categorya, OffsetNumber attnumb, Datum b, GinNullCategory categoryb)
static int ginCompareEntries(GinState *ginstate, OffsetNumber attnum, Datum a, GinNullCategory categorya, Datum b, GinNullCategory categoryb)
bool gininsert(Relation index, Datum *values, bool *isnull, ItemPointer ht_ctid, Relation heapRel, IndexUniqueCheck checkUnique, bool indexUnchanged, struct IndexInfo *indexInfo)
Definition gininsert.c:856
ItemPointer ginPostingListDecode(GinPostingList *plist, int *ndecoded_out)
int GinDataLeafPageGetItemsToTbm(Page page, TIDBitmap *tbm)
Datum gintuple_get_key(GinState *ginstate, IndexTuple tuple, GinNullCategory *category)
Definition ginutil.c:265
struct GinBtreeData * GinBtree
void GinDataPageAddPostingItem(Page page, PostingItem *data, OffsetNumber offset)
void ginInsertItemPointers(Relation index, BlockNumber rootBlkno, ItemPointerData *items, uint32 nitem, GinStatsData *buildStats)
void GinInitMetabuffer(Buffer b)
Definition ginutil.c:362
void ginInitBA(BuildAccumulator *accum)
Definition ginbulk.c:109
void ginbuildempty(Relation index)
Definition gininsert.c:807
void ginHeapTupleFastInsert(GinState *ginstate, GinTupleCollector *collector)
Definition ginfast.c:219
char * ginbuildphasename(int64 phasenum)
Definition ginutil.c:675
IndexBuildResult * ginbuild(Relation heap, Relation index, struct IndexInfo *indexInfo)
Definition gininsert.c:613
void initGinState(GinState *state, Relation index)
Definition ginutil.c:103
struct GinScanKeyData * GinScanKey
GinBtreeStack * ginFindLeafPage(GinBtree btree, bool searchMode, bool rootConflictCheck)
Definition ginbtree.c:83
IndexBulkDeleteResult * ginbulkdelete(IndexVacuumInfo *info, IndexBulkDeleteResult *stats, IndexBulkDeleteCallback callback, void *callback_state)
Definition ginvacuum.c:564
IndexBulkDeleteResult * ginvacuumcleanup(IndexVacuumInfo *info, IndexBulkDeleteResult *stats)
Definition ginvacuum.c:687
ItemPointer ginReadTuple(GinState *ginstate, OffsetNumber attnum, IndexTuple itup, int *nitems)
void ginadjustmembers(Oid opfamilyoid, Oid opclassoid, List *operators, List *functions)
void ginVacuumPostingTreeLeaf(Relation indexrel, Buffer buffer, GinVacuumState *gvs)
IndexTuple GinFormTuple(GinState *ginstate, OffsetNumber attnum, Datum key, GinNullCategory category, Pointer data, Size dataSize, int nipd, bool errorTooBig)
void ginPrepareEntryScan(GinBtree btree, OffsetNumber attnum, Datum key, GinNullCategory category, GinState *ginstate)
ItemPointer ginMergeItemPointers(ItemPointerData *a, uint32 na, ItemPointerData *b, uint32 nb, int *nmerged)
void ginDataFillRoot(GinBtree btree, Page root, BlockNumber lblkno, Page lpage, BlockNumber rblkno, Page rpage)
Buffer ginStepRight(Buffer buffer, Relation index, int lockmode)
Definition ginbtree.c:177
ItemPointer GinDataLeafPageGetItems(Page page, int *nitems, ItemPointerData advancePast)
#define GinItemPointerGetOffsetNumber(pointer)
Definition ginblock.h:146
#define GIN_CAT_NORM_KEY
Definition ginblock.h:208
signed char GinNullCategory
Definition ginblock.h:206
#define GinItemPointerGetBlockNumber(pointer)
Definition ginblock.h:143
#define nitems(x)
Definition indent.h:31
static struct @172 value
static int pg_cmp_u64(uint64 a, uint64 b)
Definition int.h:731
int b
Definition isn.c:74
int a
Definition isn.c:73
uint16 OffsetNumber
Definition off.h:24
int16 attnum
#define INDEX_MAX_KEYS
const void size_t len
const void * data
uint64_t Datum
Definition postgres.h:70
static int32 DatumGetInt32(Datum X)
Definition postgres.h:212
unsigned int Oid
static int fb(int x)
tree ctl root
Definition radixtree.h:1857
static const struct fns functions
Definition regcomp.c:358
uint16 StrategyNumber
Definition stratnum.h:22
GinState * ginstate
RBTreeIterator tree_walk
GinEntryAccumulator * entryallocator
ItemPointerData * items
BlockNumber(* findChildPage)(GinBtree, GinBtreeStack *)
GinState * ginstate
void(* execPlaceToPage)(GinBtree, Buffer, GinBtreeStack *, void *, BlockNumber, void *)
BlockNumber(* getLeftMostChild)(GinBtree, Page)
bool(* findItem)(GinBtree, GinBtreeStack *)
bool(* isMoveRight)(GinBtree, Page)
ItemPointerData itemptr
GinPlaceToPageRC(* beginPlaceToPage)(GinBtree, Buffer, GinBtreeStack *, void *, BlockNumber, void **, Page *, Page *)
GinNullCategory entryCategory
OffsetNumber entryAttnum
OffsetNumber(* findChildPtr)(GinBtree, Page, BlockNumber, OffsetNumber)
Relation index
void(* fillRoot)(GinBtree, Page, BlockNumber, Page, BlockNumber, Page)
BlockNumber rootBlkno
OffsetNumber off
uint32 predictNumber
ItemPointerData iptr
struct GinBtreeStack * parent
BlockNumber blkno
OffsetNumber attnum
ItemPointerData * list
GinNullCategory category
int32 vl_len_
Definition gin_private.h:29
bool useFastUpdate
Definition gin_private.h:30
int pendingListCleanupSize
Definition gin_private.h:31
ItemPointerData curItem
GinBtreeData btree
TBMIterateResult matchResult
OffsetNumber matchOffsets[TBM_MAX_TUPLES_PER_PAGE]
TIDBitmap * matchBitmap
ItemPointerData * list
TBMPrivateIterator * matchIterator
GinNullCategory queryCategory
StrategyNumber strategy
OffsetNumber offset
uint32 predictNumberResult
OffsetNumber attnum
GinScanEntry * scanEntry
uint32 nuserentries
StrategyNumber strategy
GinScanEntry * additionalEntries
Datum * queryValues
GinScanEntry * requiredEntries
FmgrInfo * triConsistentFmgrInfo
ItemPointerData curItem
GinNullCategory * queryCategories
FmgrInfo * consistentFmgrInfo
GinTernaryValue * entryRes
Pointer * extra_data
GinTernaryValue(* triConsistentFn)(GinScanKey key)
bool(* boolConsistentFn)(GinScanKey key)
OffsetNumber attnum
MemoryContext keyCtx
GinScanEntry * entries
MemoryContext tempCtx
FmgrInfo comparePartialFn[INDEX_MAX_KEYS]
Definition gin_private.h:85
bool oneCol
Definition gin_private.h:61
FmgrInfo extractQueryFn[INDEX_MAX_KEYS]
Definition gin_private.h:82
TupleDesc tupdesc[INDEX_MAX_KEYS]
Definition gin_private.h:75
FmgrInfo triConsistentFn[INDEX_MAX_KEYS]
Definition gin_private.h:84
TupleDesc origTupdesc
Definition gin_private.h:74
FmgrInfo extractValueFn[INDEX_MAX_KEYS]
Definition gin_private.h:81
Relation index
Definition gin_private.h:60
FmgrInfo consistentFn[INDEX_MAX_KEYS]
Definition gin_private.h:83
Oid supportCollation[INDEX_MAX_KEYS]
Definition gin_private.h:89
bool canPartialMatch[INDEX_MAX_KEYS]
Definition gin_private.h:87
FmgrInfo compareFn[INDEX_MAX_KEYS]
Definition gin_private.h:80
IndexTuple * tuples
Definition pg_list.h:54
Definition type.h:96
Definition c.h:706
static void callback(struct sockaddr *addr, struct sockaddr *mask, void *unused)
static ItemArray items
#define TBM_MAX_TUPLES_PER_PAGE
Definition tidbitmap.h:34