From: Heikki Linnakangas Date: Mon, 30 Mar 2026 14:13:11 +0000 (+0300) Subject: Fix outdated comment on MainLWLockArray X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd365b1ae510005eda5633702d2fa9325ee8ab61;p=thirdparty%2Fpostgresql.git Fix outdated comment on MainLWLockArray It's no longer passed to child processes down via BackendParameters in EXEC_BACKEND mode. Reported-by: Sami Imseih Discussion: https://www.postgresql.org/message-id/CAA5RZ0vPWNMvTBqyH7nqDRrHd6Y4Et5iNqXFuwpbsPOk3cL4rQ@mail.gmail.com --- diff --git a/src/backend/storage/lmgr/lwlock.c b/src/backend/storage/lmgr/lwlock.c index f5b2a6d479d..5cb696490d6 100644 --- a/src/backend/storage/lmgr/lwlock.c +++ b/src/backend/storage/lmgr/lwlock.c @@ -145,11 +145,7 @@ StaticAssertDecl(lengthof(BuiltinTrancheNames) == LWTRANCHE_FIRST_USER_DEFINED, "missing entries in BuiltinTrancheNames[]"); -/* - * This points to the main array of LWLocks in shared memory. Backends inherit - * the pointer by fork from the postmaster (except in the EXEC_BACKEND case, - * where we have special measures to pass it down). - */ +/* Main array of LWLocks in shared memory */ LWLockPadded *MainLWLockArray = NULL; /*