pgsql: Remove column for wait event names in wait_event_names.txt

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove column for wait event names in wait_event_names.txt
Date: 2023-09-06 01:27:34
Message-ID: E1qdhKP-002bEg-R0@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Remove column for wait event names in wait_event_names.txt

This file is now made of two columns, removing the column listing the
user-visible strings used in the system views and the documentation:
- Enum definitions for each class without the prefix "WAIT_EVENT_", so
as this information can be grepped in the code and wait_event_names.txt
at the same time.
- Description in the documentation.

The wait event names are now generated from the enum objects in
CamelCase, with the underscores removed. The data generated for wait
events is consistent with what was produced by 414f6c0fb79a.

This has the advantage to remove WAIT_EVENT_DOCONLY, which was a
placeholder for the wait event types Lock and LWLock as these two only
require the generation of the documentation.

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/59cbf60c0f2b5723ce4a939077c99bf4e4c433d3

Modified Files
--------------
.../utils/activity/generate-wait_event_types.pl | 40 +-
src/backend/utils/activity/wait_event_names.txt | 502 ++++++++++-----------
2 files changed, 279 insertions(+), 263 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2023-09-06 06:16:42 pgsql: Update list of acknowledgments in release notes
Previous Message Michael Paquier 2023-09-06 01:07:40 pgsql: Use more consistent names for wait event objects and types