From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Refactor CreateSharedMemoryAndSemaphores
Date: Sun, 03 Dec 2023 14:41:03 +0000
Message-ID: <E1r9neZ-008PJj-Da@gemulon.postgresql.org> (raw)
Refactor CreateSharedMemoryAndSemaphores
For clarity, have separate functions for *creating* the shared memory
and semaphores at postmaster or single-user backend startup, and
for *attaching* to existing shared memory structures in EXEC_BACKEND
case. CreateSharedMemoryAndSemaphores() is now called only at
postmaster startup, and a new AttachSharedMemoryStructs() function is
called at backend startup in EXEC_BACKEND mode.
Reviewed-by: Tristan Partin, Andres Freund
Discussion: https://www.postgresql.org/message-id/7a59b073-5b5b-151e-7ed3-8b01ff7ce9ef@iki.fi
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/69d903367cdea188bf865f4edd72a186cda9e689
Modified Files
--------------
src/backend/postmaster/postmaster.c | 20 ++--
src/backend/replication/walreceiver.c | 3 +-
src/backend/storage/ipc/ipci.c | 178 +++++++++++++++++++---------------
src/backend/storage/lmgr/proc.c | 2 +-
src/include/storage/ipc.h | 3 +
5 files changed, 117 insertions(+), 89 deletions(-)
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 CreateSharedMemoryAndSemaphores
In-Reply-To: <E1r9neZ-008PJj-Da@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