Code review for pg_locks feature. Make shmemoffset of PROCLOCK structs
Tom Lane <tgl@sss.pgh.pa.us>
Code review for pg_locks feature. Make shmemoffset of PROCLOCK structs available (else there's no way to interpret the list links). Change pg_locks view to show transaction ID locks separately from ordinary relation locks. Avoid showing N duplicate rows when the same lock is held multiple times (seems unlikely that users care about exact hold count). Improve documentation.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/monitoring.sgml | modified | +56 −32 |
| src/backend/storage/lmgr/lock.c | modified | +34 −25 |
| src/backend/utils/adt/lockfuncs.c | modified | +102 −84 |
| src/bin/initdb/initdb.sh | modified | +5 −8 |
| src/include/catalog/catversion.h | modified | +2 −2 |
| src/include/storage/lock.h | modified | +12 −11 |
| src/test/regress/expected/rules.out | modified | +1 −1 |