Fix inconsistent LWLock tranche names for MultiXact*
authorMichael Paquier <[email protected]>
Thu, 17 Jul 2025 00:32:55 +0000 (09:32 +0900)
committerMichael Paquier <[email protected]>
Thu, 17 Jul 2025 00:32:55 +0000 (09:32 +0900)
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 53c2a97a9266.  08b9b9e043bb has fixed a similar
inconsistency some time ago.

Author: Bertrand Drouvot <[email protected]>
Reviewed-by: Álvaro Herrera <[email protected]>
Discussion: https://postgr.es/m/[email protected]
Backpatch-through: 17

src/backend/storage/lmgr/lwlock.c

index 5df62fafbfbae13d0be3d2f465cc624aae96f9fc..11df55c63e50cfbe4ccc6cad530f37fe7953ee8b 100644 (file)
@@ -162,8 +162,8 @@ static const char *const BuiltinTrancheNames[] = {
    [LWTRANCHE_DSM_REGISTRY_DSA] = "DSMRegistryDSA",
    [LWTRANCHE_DSM_REGISTRY_HASH] = "DSMRegistryHash",
    [LWTRANCHE_COMMITTS_SLRU] = "CommitTsSLRU",
-   [LWTRANCHE_MULTIXACTOFFSET_SLRU] = "MultixactOffsetSLRU",
-   [LWTRANCHE_MULTIXACTMEMBER_SLRU] = "MultixactMemberSLRU",
+   [LWTRANCHE_MULTIXACTOFFSET_SLRU] = "MultiXactOffsetSLRU",
+   [LWTRANCHE_MULTIXACTMEMBER_SLRU] = "MultiXactMemberSLRU",
    [LWTRANCHE_NOTIFY_SLRU] = "NotifySLRU",
    [LWTRANCHE_SERIAL_SLRU] = "SerialSLRU",
    [LWTRANCHE_SUBTRANS_SLRU] = "SubtransSLRU",