]> granicus.if.org Git - postgresql/commitdiff
Fix missing argument and function prototypes.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 6 Nov 2013 09:20:52 +0000 (11:20 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 6 Nov 2013 09:22:58 +0000 (11:22 +0200)
Not sure how I missed these in previous commit.

src/backend/access/gin/gininsert.c
src/include/access/gin_private.h

index 125f3fb12d9a33639159ae0c9481a599ddd6183c..fb7b4ea1ac39ab1f3525713ffa98b56e3bc1972c 100644 (file)
@@ -143,7 +143,8 @@ buildFreshLeafTuple(GinState *ginstate,
                /*
                 * Initialize a new posting tree with the TIDs.
                 */
-               postingRoot = createPostingTree(ginstate->index, items, nitem);
+               postingRoot = createPostingTree(ginstate->index, items, nitem,
+                                                                               buildStats);
 
                /* And save the root link in the result tuple */
                GinSetPostingTree(res, postingRoot);
index c1462ee2fe66c856992ce998ab0c9274e59dc665..67636ab592e98e9b63d48c6a5e3c5787e1a8600c 100644 (file)
@@ -533,10 +533,9 @@ extern void ginEntryFillRoot(GinBtree btree, Buffer root, Buffer lbuf, Buffer rb
 extern IndexTuple ginPageGetLinkItup(Buffer buf);
 
 /* gindatapage.c */
-extern uint32 ginMergeItemPointers(ItemPointerData *dst,
-                                        ItemPointerData *a, uint32 na,
-                                        ItemPointerData *b, uint32 nb);
-
+extern BlockNumber createPostingTree(Relation index,
+                                 ItemPointerData *items, uint32 nitems,
+                                 GinStatsData *buildStats);
 extern void GinDataPageAddItemPointer(Page page, ItemPointer data, OffsetNumber offset);
 extern void GinDataPageAddPostingItem(Page page, PostingItem *data, OffsetNumber offset);
 extern void GinPageDeletePostingItem(Page page, OffsetNumber offset);
@@ -727,6 +726,12 @@ extern void ginHeapTupleFastCollect(GinState *ginstate,
 extern void ginInsertCleanup(GinState *ginstate,
                                 bool vac_delay, IndexBulkDeleteResult *stats);
 
+/* ginpostinglist.c */
+extern uint32 ginMergeItemPointers(ItemPointerData *dst,
+                                        ItemPointerData *a, uint32 na,
+                                        ItemPointerData *b, uint32 nb);
+
+
 /*
  * Merging the results of several gin scans compares item pointers a lot,
  * so we want this to be inlined. But if the compiler doesn't support that,