git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fc6600f)
Adjust commentary for WaitEventLWLock in wait_event_names.txt.
Thu, 4 Sep 2025 15:18:42 +0000 (10:18 -0500)
Thu, 4 Sep 2025 15:18:42 +0000 (10:18 -0500)
In addition to changing a couple of references for clarity, this
commit combines the two similar comments.


diff --git a/src/backend/utils/activity/wait_event_names.txt b/src/backend/utils/activity/wait_event_names.txt
index 5427da5bc1b1976fe09a430eb6e699658aa57f7f..7553f6eacef7b806233ed16ccaae145563d7bd90 100644 (file)
--- 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."
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /