Refactor lock manager initialization to make it a bit less special
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 29 Aug 2024 06:46:06 +0000 (09:46 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 29 Aug 2024 06:46:06 +0000 (09:46 +0300)
commitfbce7dfc77eaa0d017dfee78c9d27b142d435e41
treef487307260e77e8dc67b7df72d29b42e0792a9f9
parent9f87da1cffda0e07ff3babcfa84abe9e849ccd95
Refactor lock manager initialization to make it a bit less special

Split the shared and local initialization to separate functions, and
follow the common naming conventions. With this, we no longer create
the LockMethodLocalHash hash table in the postmaster process, which
was always pointless.

Reviewed-by: Andreas Karlsson
Discussion: https://www.postgresql.org/message-id/c09694ff-2453-47e5-b26c-32a16cd75ce6@iki.fi
src/backend/storage/ipc/ipci.c
src/backend/storage/lmgr/lock.c
src/backend/utils/init/postinit.c
src/include/storage/lock.h