pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Refactor lock manager initialization to make it a bit less speci
Date: Thu, 29 Aug 2024 07:01:13 +0000
Message-ID: <E1sjZ9d-001wLL-6A@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1sjZ9d-001wLL-6A@gemulon.postgresql.org>
Permalink:  ../E1sjZ9d-001wLL-6A@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1sjZ9d-001wLL-6A@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: heikki.linnakangas@iki.fi, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Refactor lock manager initialization to make it a bit less speci
  In-Reply-To: <E1sjZ9d-001wLL-6A@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox