• Robert Haas's avatar
    Create VXID locks "lazily" in the main lock table. · 84e37126
    Robert Haas authored
    Instead of entering them on transaction startup, we materialize them
    only when someone wants to wait, which will occur only during CREATE
    INDEX CONCURRENTLY.  In Hot Standby mode, the startup process must also
    be able to probe for conflicting VXID locks, but the lock need never be
    fully materialized, because the startup process does not use the normal
    lock wait mechanism.  Since most VXID locks never need to touch the
    lock manager partition locks, this can significantly reduce blocking
    contention on read-heavy workloads.
    
    Patch by me.  Review by Jeff Davis.
    84e37126
proc.h 8.84 KB