git.postgresql.org Git - postgresql.git/commit
Thu, 4 Aug 2011 16:38:33 +0000 (12:38 -0400)
Thu, 4 Aug 2011 16:38:33 +0000 (12:38 -0400)
commit 84e37126770dd6de903dad88ce150a49b63b5ef9
Create VXID locks "lazily" in the main lock table.
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.
This is the main PostgreSQL git repository.
RSS
Atom