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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Drop the redundant "Lock" suffix from LWLock wait event names.
Дата
Msg-id E1jZkBU-0001Zu-8t@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix bogus initialization of replication origin shared memory sta
Следующее
От: Alvaro Herrera
Дата:
Сообщение: pgsql: Fix walsender error cleanup code