Skip to content

Commit 4fcbe06

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 409c63f commit 4fcbe06

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
@@ -170,8 +170,8 @@ static const char *const BuiltinTrancheNames[] = {
170170
[LWTRANCHE_DSM_REGISTRY_DSA] = "DSMRegistryDSA",
171171
[LWTRANCHE_DSM_REGISTRY_HASH] = "DSMRegistryHash",
172172
[LWTRANCHE_COMMITTS_SLRU] = "CommitTsSLRU",
173-
[LWTRANCHE_MULTIXACTOFFSET_SLRU] = "MultixactOffsetSLRU",
174-
[LWTRANCHE_MULTIXACTMEMBER_SLRU] = "MultixactMemberSLRU",
173+
[LWTRANCHE_MULTIXACTOFFSET_SLRU] = "MultiXactOffsetSLRU",
174+
[LWTRANCHE_MULTIXACTMEMBER_SLRU] = "MultiXactMemberSLRU",
175175
[LWTRANCHE_NOTIFY_SLRU] = "NotifySLRU",
176176
[LWTRANCHE_SERIAL_SLRU] = "SerialSLRU",
177177
[LWTRANCHE_SUBTRANS_SLRU] = "SubtransSLRU",

0 commit comments

Comments
 (0)