Fix outdated comment on MainLWLockArray

It's no longer passed to child processes down via BackendParameters in
EXEC_BACKEND mode.

Reported-by: Sami Imseih <samimseih@gmail.com>
Discussion: https://www.postgresql.org/message-id/CAA5RZ0vPWNMvTBqyH7nqDRrHd6Y4Et5iNqXFuwpbsPOk3cL4rQ@mail.gmail.com
This commit is contained in:
Heikki Linnakangas 2026-03-30 17:13:11 +03:00
parent e2ee95233c
commit bd365b1ae5

View file

@ -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;
/*