pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Fix badly generated entries in wait_event_names.txt
3+ messages / 2 participants
[nested] [flat]

Commits from this thread:
  2023-08-07 f05b1fa1ff  doc: Fix incorrect entries generated from wait_event_names.txt
* Fix badly generated entries in wait_event_names.txt
@ 2023-08-07 08:34 Drouvot, Bertrand <bertranddrouvot.pg@gmail.com>
  2023-08-07 23:25 ` Re: Fix badly generated entries in wait_event_names.txt Michael Paquier <michael@paquier.xyz>
  0 siblings, 1 reply; 3+ messages in thread

From: Drouvot, Bertrand @ 2023-08-07 08:34 UTC (permalink / raw)
  To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>; +Cc: Michael Paquier <michael@paquier.xyz>

Hi hackers,

fa88928470 introduced src/backend/utils/activity/wait_event_names.txt that has
been auto-generated. The auto-generation had parsing errors leading to bad
entries in wait_event_names.txt (when the same "WAIT_EVENT" name can be found as
a substring of another one, then descriptions were merged in one of them).

Fixing those bad entries in the attached.

Regards,

-- 
Bertrand Drouvot
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com

Attachments:

v1-0001-Fix-badly-generated-entries-in-wait_event_names.t.patch (text/plain, 4.5K) download From fe669c646ea93b66b36d0aa97bb5665f0dd734b7 Mon Sep 17 00:00:00 2001 From: bdrouvotAWS <bdrouvot@amazon.com> Date: Mon, 7 Aug 2023 07:12:11 +0000 Subject: [PATCH v1] Fix badly generated entries in wait_event_names.txt fa88928470 introduced src/backend/utils/activity/wait_event_names.txt that has been auto-generated. The auto-generation had parsing errors leading to bad entries in wait_event_names.txt (when the same "WAIT_EVENT" name can be found as a substring of another one, then descriptions were merged in one of them.) Fixing those bad entries. --- src/backend/utils/activity/wait_event_names.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/wait_event_names.txt b/src/backend/utils/activity/wait_event_names.txt index 2ea4789b00..fcd9d2c63c 100644 --- a/src/backend/utils/activity/wait_event_names.txt +++ b/src/backend/utils/activity/wait_event_names.txt @@ -137,7 +137,7 @@ WAIT_EVENT_REPLICATION_ORIGIN_DROP ReplicationOriginDrop "Waiting for a replicat WAIT_EVENT_REPLICATION_SLOT_DROP ReplicationSlotDrop "Waiting for a replication slot to become inactive so it can be dropped." WAIT_EVENT_RESTORE_COMMAND RestoreCommand "Waiting for <xref linkend="guc-restore-command"/> to complete." WAIT_EVENT_SAFE_SNAPSHOT SafeSnapshot "Waiting to obtain a valid snapshot for a <literal>READ ONLY DEFERRABLE</literal> transaction." -WAIT_EVENT_SYNC_REP SyncRep "Waiting for confirmation from a remote server during synchronous replication. Waiting to read or update information about the state of synchronous replication." +WAIT_EVENT_SYNC_REP SyncRep "Waiting for confirmation from a remote server during synchronous replication." WAIT_EVENT_WAL_RECEIVER_EXIT WalReceiverExit "Waiting for the WAL receiver to exit." WAIT_EVENT_WAL_RECEIVER_WAIT_START WalReceiverWaitStart "Waiting for startup process to send initial data for streaming replication." WAIT_EVENT_XACT_GROUP_UPDATE XactGroupUpdate "Waiting for the group leader to update transaction status at end of a parallel operation." @@ -177,9 +177,9 @@ WAIT_EVENT_BUFFILE_READ BufFileRead "Waiting for a read from a buffered file." WAIT_EVENT_BUFFILE_WRITE BufFileWrite "Waiting for a write to a buffered file." WAIT_EVENT_BUFFILE_TRUNCATE BufFileTruncate "Waiting for a buffered file to be truncated." WAIT_EVENT_CONTROL_FILE_READ ControlFileRead "Waiting for a read from the <filename>pg_control</filename> file." -WAIT_EVENT_CONTROL_FILE_SYNC ControlFileSync "Waiting for the <filename>pg_control</filename> file to reach durable storage. Waiting for an update to the <filename>pg_control</filename> file to reach durable storage." +WAIT_EVENT_CONTROL_FILE_SYNC ControlFileSync "Waiting for the <filename>pg_control</filename> file to reach durable storage." WAIT_EVENT_CONTROL_FILE_SYNC_UPDATE ControlFileSyncUpdate "Waiting for an update to the <filename>pg_control</filename> file to reach durable storage." -WAIT_EVENT_CONTROL_FILE_WRITE ControlFileWrite "Waiting for a write to the <filename>pg_control</filename> file. Waiting for a write to update the <filename>pg_control</filename> file." +WAIT_EVENT_CONTROL_FILE_WRITE ControlFileWrite "Waiting for a write to the <filename>pg_control</filename> file." WAIT_EVENT_CONTROL_FILE_WRITE_UPDATE ControlFileWriteUpdate "Waiting for a write to update the <filename>pg_control</filename> file." WAIT_EVENT_COPY_FILE_READ CopyFileRead "Waiting for a read during a file copy operation." WAIT_EVENT_COPY_FILE_WRITE CopyFileWrite "Waiting for a write during a file copy operation." @@ -241,9 +241,9 @@ WAIT_EVENT_WAL_COPY_WRITE WALCopyWrite "Waiting for a write when creating a new WAIT_EVENT_WAL_INIT_SYNC WALInitSync "Waiting for a newly initialized WAL file to reach durable storage." WAIT_EVENT_WAL_INIT_WRITE WALInitWrite "Waiting for a write while initializing a new WAL file." WAIT_EVENT_WAL_READ WALRead "Waiting for a read from a WAL file." -WAIT_EVENT_WAL_SYNC WALSync "Waiting for a WAL file to reach durable storage. Waiting for data to reach durable storage while assigning a new WAL sync method." +WAIT_EVENT_WAL_SYNC WALSync "Waiting for a WAL file to reach durable storage." WAIT_EVENT_WAL_SYNC_METHOD_ASSIGN WALSyncMethodAssign "Waiting for data to reach durable storage while assigning a new WAL sync method." -WAIT_EVENT_WAL_WRITE WALWrite "Waiting for a write to a WAL file. Waiting for WAL buffers to be written to disk." +WAIT_EVENT_WAL_WRITE WALWrite "Waiting for a write to a WAL file." # -- 2.34.1
^ permalink raw reply [nested|flat] 3+ messages in thread

* Re: Fix badly generated entries in wait_event_names.txt
  2023-08-07 08:34 Fix badly generated entries in wait_event_names.txt Drouvot, Bertrand <bertranddrouvot.pg@gmail.com>
@ 2023-08-07 23:25 ` Michael Paquier <michael@paquier.xyz>
  2023-08-08 05:31   ` Re: Fix badly generated entries in wait_event_names.txt Drouvot, Bertrand <bertranddrouvot.pg@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Michael Paquier @ 2023-08-07 23:25 UTC (permalink / raw)
  To: Drouvot, Bertrand <bertranddrouvot.pg@gmail.com>; +Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>

On Mon, Aug 07, 2023 at 10:34:43AM +0200, Drouvot, Bertrand wrote:
> fa88928470 introduced src/backend/utils/activity/wait_event_names.txt that has
> been auto-generated. The auto-generation had parsing errors leading to bad
> entries in wait_event_names.txt (when the same "WAIT_EVENT" name can be found as
> a substring of another one, then descriptions were merged in one of them).

Thanks for the patch, applied.  I have double-checked the contents of
the tables and the five entries you have pointed out are the only ones
with duplicated descriptions.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Fix badly generated entries in wait_event_names.txt
  2023-08-07 08:34 Fix badly generated entries in wait_event_names.txt Drouvot, Bertrand <bertranddrouvot.pg@gmail.com>
  2023-08-07 23:25 ` Re: Fix badly generated entries in wait_event_names.txt Michael Paquier <michael@paquier.xyz>
@ 2023-08-08 05:31   ` Drouvot, Bertrand <bertranddrouvot.pg@gmail.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Drouvot, Bertrand @ 2023-08-08 05:31 UTC (permalink / raw)
  To: Michael Paquier <michael@paquier.xyz>; +Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>

Hi,

On 8/8/23 1:25 AM, Michael Paquier wrote:
> On Mon, Aug 07, 2023 at 10:34:43AM +0200, Drouvot, Bertrand wrote:
>> fa88928470 introduced src/backend/utils/activity/wait_event_names.txt that has
>> been auto-generated. The auto-generation had parsing errors leading to bad
>> entries in wait_event_names.txt (when the same "WAIT_EVENT" name can be found as
>> a substring of another one, then descriptions were merged in one of them).
> 
> Thanks for the patch, applied. 

Thanks!

> I have double-checked the contents of
> the tables and the five entries you have pointed out are the only ones
> with duplicated descriptions.

Yeah, did the same on my side before submitting the patch, and all looks
good now.

Regards,

-- 
Bertrand Drouvot
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2023-08-08 05:31 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2023-08-07 08:34 Fix badly generated entries in wait_event_names.txt Drouvot, Bertrand <bertranddrouvot.pg@gmail.com>
2023-08-07 23:25 ` Michael Paquier <michael@paquier.xyz>
2023-08-08 05:31   ` Drouvot, Bertrand <bertranddrouvot.pg@gmail.com>

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