]> granicus.if.org Git - postgresql/commit
Misc GIN refactoring.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 6 Nov 2013 08:31:38 +0000 (10:31 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 6 Nov 2013 08:32:09 +0000 (10:32 +0200)
commitecaa4708e5dde5e9f72cdb066780acb4b12ee0ec
tree71da25393149a4b62a385d822f010d75891f9cd4
parent920c8261d58c10de7e68d99c8dd21a9650928d59
Misc GIN refactoring.

Merge the isEnoughSpace and placeToPage functions in the b-tree interface
into one function that tries to put a tuple on page, and returns false if
it doesn't fit.

Move createPostingTree function to gindatapage.c, and change its contract
so that it can be passed more items than fit on the root page. It's in a
better position than the callers to know how many items fit.

Move ginMergeItemPointers out of gindatapage.c, into a separate file.

These changes make no difference now, but reduce the footprint of Alexander
Korotkov's upcoming patch to pack item pointers more tightly.
src/backend/access/gin/Makefile
src/backend/access/gin/README
src/backend/access/gin/ginbtree.c
src/backend/access/gin/gindatapage.c
src/backend/access/gin/ginentrypage.c
src/backend/access/gin/gininsert.c
src/backend/access/gin/ginpostinglist.c [new file with mode: 0644]
src/backend/access/gin/ginvacuum.c
src/include/access/gin_private.h