• Tom Lane's avatar
    Rearrange order of operations in heap_drop_with_catalog and index_drop · 448eb083
    Tom Lane authored
    so that we close and flush the doomed relation's relcache entry before
    we start to delete the underlying catalog rows, rather than afterwards.
    For awhile yesterday I thought that an unexpected relcache entry rebuild
    partway through this sequence might explain the infrequent parallel
    regression failures we were chasing.  It doesn't, mainly because there's
    no CommandCounterIncrement in the sequence and so the deletions aren't
    "really" done yet.  But it sure seems like trouble waiting to happen.
    448eb083
heap.h 2.8 KB