pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Use more consistent names for wait event objects and types
Date: Wed, 06 Sep 2023 01:07:40 +0000
Message-ID: <E1qdh19-002b7X-M0@gemulon.postgresql.org> (raw)

Use more consistent names for wait event objects and types

The event names use the same case-insensitive characters, hence applying
lower() or upper() to the monitoring queries allows the detection of the
same events as before this change.  It is possible to cross-check the
data with the system view pg_wait_events, for instance, with a query
like that showing no differences:
SELECT lower(type), lower(name), description
  FROM pg_wait_events ORDER BY 1, 2;

This will help in the introduction of more simplifications in the format
of wait_event_names.  Some of the enum values in the code had to be
renamed a bit to follow the same convention naming across the board.

Reviewed-by: Bertrand Drouvot
Discussion: https://postgr.es/m/ZOxVHQwEC/9X/p/z@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/414f6c0fb79a23afa63bfd27375dbd688031dfd1

Modified Files
--------------
src/backend/libpq/pqmq.c                        |  2 +-
src/backend/replication/walsender.c             |  2 +-
src/backend/storage/ipc/shm_mq.c                |  6 +-
src/backend/utils/activity/wait_event_names.txt | 90 ++++++++++++-------------
4 files changed, 50 insertions(+), 50 deletions(-)



Message-ID: <E1qdh19-002b7X-M0@gemulon.postgresql.org>
Permalink:  ../E1qdh19-002b7X-M0@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1qdh19-002b7X-M0@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Use more consistent names for wait event objects and types
  In-Reply-To: <E1qdh19-002b7X-M0@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