Rename assorted LWLock tranches.
Tom Lane <tgl@sss.pgh.pa.us>
Rename assorted LWLock tranches. Choose names that fit into the conventions for wait event names (particularly, that multi-word names are in the style MultiWordName) and hopefully convey more information to non-hacker users than the previous names did. Also rename SerializablePredicateLockListLock to SerializablePredicateListLock; the old name was long enough to cause table formatting problems, plus the double occurrence of "Lock" seems confusing/error-prone. Also change a couple of particularly opaque LWLock field names. Discussion: https://postgr.es/m/28683.1589405363@sss.pgh.pa.us
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/monitoring.sgml | modified | +163 −132 |
| src/backend/access/common/session.c | modified | +1 −1 |
| src/backend/nodes/tidbitmap.c | modified | +1 −1 |
| src/backend/replication/logical/origin.c | modified | +1 −1 |
| src/backend/replication/slot.c | modified | +2 −1 |
| src/backend/storage/buffer/buf_init.c | modified | +1 −1 |
| src/backend/storage/lmgr/lock.c | modified | +31 −31 |
| src/backend/storage/lmgr/lwlock.c | modified | +37 −28 |
| src/backend/storage/lmgr/lwlocknames.txt | modified | +3 −2 |
| src/backend/storage/lmgr/predicate.c | modified | +44 −44 |
| src/backend/storage/lmgr/proc.c | modified | +2 −2 |
| src/backend/utils/cache/typcache.c | modified | +2 −2 |
| src/include/storage/lwlock.h | modified | +9 −9 |
| src/include/storage/predicate_internals.h | modified | +6 −2 |
| src/include/storage/proc.h | modified | +1 −3 |
Documentation touched
Discussion
- Our naming of wait events is a disaster. 30 messages · 2020-05-12 → 2020-05-16