• Robert Haas's avatar
    hash: Refactor bucket squeeze code. · b0f18cb7
    Robert Haas authored
    In preparation for adding write-ahead logging to hash indexes,
    refactor _hash_freeovflpage and _hash_squeezebucket so that all
    related page modifications happen in a single section of code.  The
    previous coding assumed that it would be fine to move tuples one at a
    time, and also that the various operations involved in freeing an
    overflow page didn't necessarily all need to be done together, all
    of which is true if you don't care about write-ahead logging.
    
    Amit Kapila, with slight changes by me.
    b0f18cb7
hashinsert.c 8.03 KB