Fast-path relation locking scalability
Expand and optimize PostgreSQL’s per-backend fast-path relation locks to reduce shared lock table contention in workloads that touch many relations.
Versions
- PostgreSQL 19 · worked-on · improved · minor
- PostgreSQL 18 · shipped · improved · major · 6 commits · +309 / -101 lines
- PostgreSQL 17 · worked-on · improved · major
Threads
- max_locks_per_transaction v18
- Get rid of integer divide in FAST_PATH_REL_GROUP() macro
- Optimizing FastPathTransferRelationLocks()
- scalability bottlenecks with (many) partitions (and more)
- Refactor GetLockStatusData() by skipping unused backends and groups
- Configurable FP_LOCK_SLOTS_PER_BACKEND
- [PATCH] fastpacth-locks compile time options