Drop the redundant "Lock" suffix from LWLock wait event names.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 15 May 2020 23:55:56 +0000 (19:55 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 15 May 2020 23:55:56 +0000 (19:55 -0400)
commit14a91010912632cae322b06fce0425faedcf7353
tree49bbf3e514ac1a3ed4c66a15f415fd6b8290d1af
parent8048404939bb0fcef80b0ab57910b6e10d4289a3
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
doc/src/sgml/monitoring.sgml
src/backend/storage/lmgr/generate-lwlocknames.pl
src/backend/storage/lmgr/lwlock.c
src/include/storage/lwlock.h