Drop the redundant "Lock" suffix from LWLock wait event names.
Tom Lane <tgl@sss.pgh.pa.us>
Drop the redundant "Lock" suffix from LWLock wait event names. This was mostly confusing, especially since some wait events in this class had the suffix and some did not. While at it, stop exposing MainLWLockNames[] as a globally visible name; any code using that directly is almost certainly wrong, as its name has been misleading for some time. (GetLWLockIdentifier() is what to use instead.) Discussion: https://postgr.es/m/28683.1589405363@sss.pgh.pa.us
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/monitoring.sgml | modified | +44 −44 |
| src/backend/storage/lmgr/generate-lwlocknames.pl | modified | +6 −2 |
| src/backend/storage/lmgr/lwlock.c | modified | +3 −2 |
| src/include/storage/lwlock.h | modified | +0 −1 |
Documentation touched
Discussion
- Our naming of wait events is a disaster. 30 messages · 2020-05-12 → 2020-05-16