summaryrefslogtreecommitdiff
path: root/src/backend/utils/init
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2024-08-29 09:46:06 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2024-08-29 09:46:06 +0300
commitfbce7dfc77eaa0d017dfee78c9d27b142d435e41 (patch)
treef487307260e77e8dc67b7df72d29b42e0792a9f9 /src/backend/utils/init
parent9f87da1cffda0e07ff3babcfa84abe9e849ccd95 (diff)
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
Diffstat (limited to 'src/backend/utils/init')
-rw-r--r--src/backend/utils/init/postinit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/backend/utils/init/postinit.c b/src/backend/utils/init/postinit.c
index 13524ea488a..04a47d6e704 100644
--- a/src/backend/utils/init/postinit.c
+++ b/src/backend/utils/init/postinit.c
@@ -606,6 +606,9 @@ BaseInit(void)
*/
InitXLogInsert();
+ /* Initialize lock manager's local structs */
+ InitLockManagerAccess();
+
/*
* Initialize replication slots after pgstat. The exit hook might need to
* drop ephemeral slots, which in turn triggers stats reporting.