Обсуждение: pgsql: Drop the redundant "Lock" suffix from LWLock wait event names.

Поиск
Список
Период
Сортировка

pgsql: Drop the redundant "Lock" suffix from LWLock wait event names.

От
Tom Lane
Дата:
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/14a91010912632cae322b06fce0425faedcf7353

Modified Files
--------------
doc/src/sgml/monitoring.sgml                     | 88 ++++++++++++------------
src/backend/storage/lmgr/generate-lwlocknames.pl |  8 ++-
src/backend/storage/lmgr/lwlock.c                |  5 +-
src/include/storage/lwlock.h                     |  1 -
4 files changed, 53 insertions(+), 49 deletions(-)