git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 3b17efd) | patch
Create VXID locks "lazily" in the main lock table.
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.
src/backend/commands/indexcmds.c diff | blob | blame | history
src/backend/postmaster/autovacuum.c diff | blob | blame | history
src/backend/storage/ipc/sinvaladt.c diff | blob | blame | history
src/backend/storage/ipc/standby.c diff | blob | blame | history
src/backend/storage/lmgr/README diff | blob | blame | history
src/backend/storage/lmgr/lmgr.c diff | blob | blame | history
src/backend/storage/lmgr/lock.c diff | blob | blame | history
src/include/storage/lmgr.h diff | blob | blame | history
src/include/storage/lock.h diff | blob | blame | history
src/include/storage/proc.h diff | blob | blame | history
src/include/storage/sinvaladt.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /