Skip to content

Commit b3abec0

Browse files
committed
Fix inconsistent LWLock tranche names for MultiXact*
The terms used in wait_event_names.txt and lwlock.c were inconsistent for MultiXactOffsetSLRU and MultiXactMemberSLRU, which could cause joins between pg_wait_events and pg_stat_activity to fail. lwlock.c is adjusted in this commit to what the historical name of the event has always been, and what is documented. Oversight in 53c2a97. 08b9b9e has fixed a similar inconsistency some time ago. Author: Bertrand Drouvot <bertranddrouvot.pg@gmail.com> Reviewed-by: Álvaro Herrera <alvherre@kurilemu.de> Discussion: https://postgr.es/m/aHdxN0D0hKXzHFQG@ip-10-97-1-34.eu-west-3.compute.internal Backpatch-through: 17
1 parent b06a335 commit b3abec0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/storage/lmgr/lwlock.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ static const char *const BuiltinTrancheNames[] = {
162162
[LWTRANCHE_DSM_REGISTRY_DSA] = "DSMRegistryDSA",
163163
[LWTRANCHE_DSM_REGISTRY_HASH] = "DSMRegistryHash",
164164
[LWTRANCHE_COMMITTS_SLRU] = "CommitTsSLRU",
165-
[LWTRANCHE_MULTIXACTOFFSET_SLRU] = "MultixactOffsetSLRU",
166-
[LWTRANCHE_MULTIXACTMEMBER_SLRU] = "MultixactMemberSLRU",
165+
[LWTRANCHE_MULTIXACTOFFSET_SLRU] = "MultiXactOffsetSLRU",
166+
[LWTRANCHE_MULTIXACTMEMBER_SLRU] = "MultiXactMemberSLRU",
167167
[LWTRANCHE_NOTIFY_SLRU] = "NotifySLRU",
168168
[LWTRANCHE_SERIAL_SLRU] = "SerialSLRU",
169169
[LWTRANCHE_SUBTRANS_SLRU] = "SubtransSLRU",

0 commit comments

Comments
 (0)