Skip to content

Commit 0ea5325

Browse files
committed
Fix missing argument and function prototypes.
Not sure how I missed these in previous commit.
1 parent ecaa470 commit 0ea5325

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

src/backend/access/gin/gininsert.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ buildFreshLeafTuple(GinState *ginstate,
143143
/*
144144
* Initialize a new posting tree with the TIDs.
145145
*/
146-
postingRoot = createPostingTree(ginstate->index, items, nitem);
146+
postingRoot = createPostingTree(ginstate->index, items, nitem,
147+
buildStats);
147148

148149
/* And save the root link in the result tuple */
149150
GinSetPostingTree(res, postingRoot);

src/include/access/gin_private.h

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -533,10 +533,9 @@ extern void ginEntryFillRoot(GinBtree btree, Buffer root, Buffer lbuf, Buffer rb
533533
extern IndexTuple ginPageGetLinkItup(Buffer buf);
534534

535535
/* gindatapage.c */
536-
extern uint32 ginMergeItemPointers(ItemPointerData *dst,
537-
ItemPointerData *a, uint32 na,
538-
ItemPointerData *b, uint32 nb);
539-
536+
extern BlockNumber createPostingTree(Relation index,
537+
ItemPointerData *items, uint32 nitems,
538+
GinStatsData *buildStats);
540539
extern void GinDataPageAddItemPointer(Page page, ItemPointer data, OffsetNumber offset);
541540
extern void GinDataPageAddPostingItem(Page page, PostingItem *data, OffsetNumber offset);
542541
extern void GinPageDeletePostingItem(Page page, OffsetNumber offset);
@@ -727,6 +726,12 @@ extern void ginHeapTupleFastCollect(GinState *ginstate,
727726
extern void ginInsertCleanup(GinState *ginstate,
728727
bool vac_delay, IndexBulkDeleteResult *stats);
729728

729+
/* ginpostinglist.c */
730+
extern uint32 ginMergeItemPointers(ItemPointerData *dst,
731+
ItemPointerData *a, uint32 na,
732+
ItemPointerData *b, uint32 nb);
733+
734+
730735
/*
731736
* Merging the results of several gin scans compares item pointers a lot,
732737
* so we want this to be inlined. But if the compiler doesn't support that,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy