pgsql: Refactor lock manager initialization to make it a bit less speci

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Refactor lock manager initialization to make it a bit less speci
Date: 2024-08-29 07:01:13
Message-ID: E1sjZ9d-001wLL-6A@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/fbce7dfc77eaa0d017dfee78c9d27b142d435e41

Modified Files
--------------
src/backend/storage/ipc/ipci.c | 4 ++--
src/backend/storage/lmgr/lock.c | 35 +++++++++++++++++------------------
src/backend/utils/init/postinit.c | 3 +++
src/include/storage/lock.h | 5 +++--
4 files changed, 25 insertions(+), 22 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2024-08-29 07:07:42 pgsql: Disallow USING clause when altering type of generated column
Previous Message Michael Paquier 2024-08-29 06:31:50 pgsql: Refactor some code for ALTER TABLE SET LOGGED/UNLOGGED in tablec