public inbox for [email protected]  
help / color / mirror / Atom feed
From: Guoqing Yang <[email protected]>
To: [email protected]
Subject: Fix Grammar in Buffer Lock Wait Message
Date: Wed, 1 Jul 2026 09:44:53 +0800
Message-ID: <[email protected]> (raw)

Fix grammar in buffer lock wait message

Correct the wait message from "Waiting to acquire a exclusive lock on a 
buffer"
to "Waiting to acquire an exclusive lock on a buffer".

The word "exclusive" starts with a vowel sound, so the indefinite article
should be "an" instead of "a".

Regards,
Guoqing Yang


diff --git a/src/backend/utils/activity/wait_event_names.txt b/src/backend/utils/activity/wait_event_names.txt
index 560659f9568..bafdd7d2e96 100644
--- a/src/backend/utils/activity/wait_event_names.txt
+++ b/src/backend/utils/activity/wait_event_names.txt
@@ -294,7 +294,7 @@ Section: ClassName - WaitEventBuffer
 BUFFER_CLEANUP "Waiting to acquire an exclusive pin on a buffer. Buffer pin waits can be protracted if another process holds an open cursor that last read data from the buffer in question."
 BUFFER_SHARED  "Waiting to acquire a shared lock on a buffer."
 BUFFER_SHARE_EXCLUSIVE "Waiting to acquire a share exclusive lock on a buffer."
-BUFFER_EXCLUSIVE       "Waiting to acquire a exclusive lock on a buffer."
+BUFFER_EXCLUSIVE       "Waiting to acquire an exclusive lock on a buffer."

 ABI_compatibility:

Attachments:

  [text/plain] lockWaitMessage.diff (832B, ../[email protected]/3-lockWaitMessage.diff)
  download | inline diff:
diff --git a/src/backend/utils/activity/wait_event_names.txt b/src/backend/utils/activity/wait_event_names.txt
index 560659f9568..bafdd7d2e96 100644
--- a/src/backend/utils/activity/wait_event_names.txt
+++ b/src/backend/utils/activity/wait_event_names.txt
@@ -294,7 +294,7 @@ Section: ClassName - WaitEventBuffer
 BUFFER_CLEANUP "Waiting to acquire an exclusive pin on a buffer. Buffer pin waits can be protracted if another process holds an open cursor that last read data from the buffer in question."
 BUFFER_SHARED  "Waiting to acquire a shared lock on a buffer."
 BUFFER_SHARE_EXCLUSIVE "Waiting to acquire a share exclusive lock on a buffer."
-BUFFER_EXCLUSIVE       "Waiting to acquire a exclusive lock on a buffer."
+BUFFER_EXCLUSIVE       "Waiting to acquire an exclusive lock on a buffer."

 ABI_compatibility:

view thread (2+ messages)  latest in thread

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: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: Fix Grammar in Buffer Lock Wait Message
  In-Reply-To: <[email protected]>

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

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