]> git.ipfire.org Git - thirdparty/postgresql.git/commit
doc: Add new section describing fast-path locking
authorMichael Paquier <michael@paquier.xyz>
Wed, 1 Jul 2026 01:08:26 +0000 (10:08 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 1 Jul 2026 01:08:26 +0000 (10:08 +0900)
commit2d31da527169fb54916d7435629c04a7b7bbda1d
tree960fa24e8be9ba2ae6a8c5fc0b89d0cfbeb2c865
parenta78f7390bf19868cc313482b307d5148ad00aae2
doc: Add new section describing fast-path locking

Fast-path locking is referenced by pg_stat_lock.fastpath_exceeded, by
pg_locks.fastpath, and in the GUC max_locks_per_transaction.  However,
the documentation has never described in details how this works; one
would need to look at the internals of lock.c, mostly around
EligibleForRelationFastPath().

This commit adds a new subsection called "Fast-Path Locking" to the area
dedicated to locks, with the three places mentioned above linking to it.

Author: Tatsuya Kawata <kawatatatsuya0913@gmail.com>
Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/CAHza6qdKo9dcPy70QBi88vpqhS2gYWViS8=Uj=-+QQbR=ONgSQ@mail.gmail.com
doc/src/sgml/config.sgml
doc/src/sgml/monitoring.sgml
doc/src/sgml/mvcc.sgml
doc/src/sgml/system-views.sgml