• Tom Lane's avatar
    Avoid unnecessary page-level SSI lock check in heap_insert(). · 9d306c66
    Tom Lane authored
    As observed by Heikki, we need not conflict on heap page locks during an
    insert; heap page locks are only aggregated tuple locks, they don't imply
    locking "gaps" as index page locks do.  So we can avoid some unnecessary
    conflicts, and also do the SSI check while not holding exclusive lock on
    the target buffer.
    
    Kevin Grittner, reviewed by Jeff Davis.  Back-patch to 9.1.
    9d306c66
heapam.c 152 KB