summaryrefslogtreecommitdiff
path: root/src/backend/utils/activity
diff options
context:
space:
mode:
authorNathan Bossart <nathan@postgresql.org>2025-09-04 10:18:42 -0500
committerNathan Bossart <nathan@postgresql.org>2025-09-04 10:18:42 -0500
commit1129d3e4c8883f25642d1f44750b4d36e29ec006 (patch)
tree9db8033a34d5b05eb4de5ba5e370bf08bac92532 /src/backend/utils/activity
parentfc6600fc1cd13b695fbde4b5f3ff0d2e97c36dea (diff)
Adjust commentary for WaitEventLWLock in wait_event_names.txt.
In addition to changing a couple of references for clarity, this commit combines the two similar comments.
Diffstat (limited to 'src/backend/utils/activity')
-rw-r--r--src/backend/utils/activity/wait_event_names.txt17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/backend/utils/activity/wait_event_names.txt b/src/backend/utils/activity/wait_event_names.txt
index 5427da5bc1b..7553f6eacef 100644
--- a/src/backend/utils/activity/wait_event_names.txt
+++ b/src/backend/utils/activity/wait_event_names.txt
@@ -302,9 +302,12 @@ ABI_compatibility:
# This class of wait events has its own set of C structure, so these are
# only used for the documentation.
#
-# NB: Predefined LWLocks (i.e., those declared in lwlocklist.h) must be
-# listed in the top section of locks and must be listed in the same order as in
-# lwlocklist.h.
+# NB: Predefined LWLocks (i.e., those declared with PG_LWLOCK in lwlocklist.h)
+# must be listed before the "END OF PREDEFINED LWLOCKS" comment and must be
+# listed in the same order as in lwlocklist.h. Likewise, the built-in LWLock
+# tranches (i.e., those declared with PG_LWLOCKTRANCHE in lwlocklist.h) must be
+# listed after the "END OF PREDEFINED LWLOCKS" comment and must be listed in
+# the same order as lwlocklist.h.
#
Section: ClassName - WaitEventLWLock
@@ -356,14 +359,6 @@ AioWorkerSubmissionQueue "Waiting to access AIO worker submission queue."
#
# END OF PREDEFINED LWLOCKS (DO NOT CHANGE THIS LINE)
#
-# Predefined LWLocks (i.e., those declared at the top of lwlocknames.h) must be
-# listed in the section above and must be listed in the same order as in
-# lwlocknames.h.
-#
-# Likewise, the built-in LWLock tranches (i.e., those declared at the bottom of
-# lwlocknames.h) must be listed in the section below and must be listed in the
-# same order as in lwlocknames.h.
-#
XactBuffer "Waiting for I/O on a transaction status SLRU buffer."
CommitTsBuffer "Waiting for I/O on a commit timestamp SLRU buffer."