pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Drop the redundant "Lock" suffix from LWLock wait event names.
Date: Fri, 15 May 2020 23:56:08 +0000
Message-ID: <E1jZkBU-0001Zu-8t@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1jZkBU-0001Zu-8t@gemulon.postgresql.org>
Permalink:  ../E1jZkBU-0001Zu-8t@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jZkBU-0001Zu-8t@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Drop the redundant "Lock" suffix from LWLock wait event names.
  In-Reply-To: <E1jZkBU-0001Zu-8t@gemulon.postgresql.org>
  References: <E1jZkBU-0001Zu-8t@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox