doc: Add new section describing fast-path locking

Michael Paquier <michael@paquier.xyz>

Commit: 2d31da527169fb54916d7435629c04a7b7bbda1d
Author: Michael Paquier <michael@paquier.xyz>
Date: 2026-07-01T01:08:26Z
Releases: master
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

Files

PathChange+/−
doc/src/sgml/config.sgml modified +6 −0
doc/src/sgml/monitoring.sgml modified +3 −0
doc/src/sgml/mvcc.sgml modified +38 −0
doc/src/sgml/system-views.sgml modified +3 −2

Documentation touched

Discussion