Refactor lock manager initialization to make it a bit less special
Heikki Linnakangas <heikki.linnakangas@iki.fi>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/ipc/ipci.c | modified | +2 −2 |
| src/backend/storage/lmgr/lock.c | modified | +17 −18 |
| src/backend/utils/init/postinit.c | modified | +3 −0 |
| src/include/storage/lock.h | modified | +3 −2 |
Discussion
- Little cleanup of ShmemInit function names 8 messages · 2024-08-07 → 2024-08-29