• Robert Haas's avatar
    Fix more hash index bugs around marking buffers dirty. · 6a4fe112
    Robert Haas authored
    In _hash_freeovflpage(), if we're freeing the overflow page that
    immediate follows the page to which tuples are being moved (the
    confusingly-named "write buffer"), don't forget to mark that
    page dirty after updating its hasho_nextblkno.
    
    In _hash_squeezebucket(), it's not necessary to mark the primary
    bucket page dirty if there are no overflow pages, because there's
    nothing to squeeze in that case.
    
    Amit Kapila, with help from Kuntal Ghosh and Dilip Kumar, after
    an initial trouble report by Jeff Janes.
    6a4fe112
hashovfl.c 24 KB