• Heikki Linnakangas's avatar
    Misc GIN refactoring. · ecaa4708
    Heikki Linnakangas authored
    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.
    ecaa4708
ginbtree.c 11.1 KB