From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Use ShmemInitStruct to allocate lwlock.c's shared memory
Date: Thu, 26 Mar 2026 22:03:58 +0000
Message-ID: <E1w5so1-001bOK-1H@gemulon.postgresql.org> (raw)
Use ShmemInitStruct to allocate lwlock.c's shared memory
It's nice to have them show up in pg_shmem_allocations like all other
shmem areas. ShmemInitStruct() depends on ShmemIndexLock, but only
after postmaster startup.
Reviewed-by: Nathan Bossart <nathandbossart@gmail.com>
Discussion: https://www.postgresql.org/message-id/47aaf57e-1b7b-4e12-bda2-0316081ff50e@iki.fi
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/30d432502bf42343ec0f9ad599625cde0cb38e57
Modified Files
--------------
src/backend/postmaster/launch_backend.c | 6 ------
src/backend/storage/ipc/ipci.c | 4 ++--
src/backend/storage/lmgr/lwlock.c | 32 ++++++++++++++++++++++----------
src/include/storage/lwlock.h | 7 +------
4 files changed, 25 insertions(+), 24 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: Use ShmemInitStruct to allocate lwlock.c's shared memory
In-Reply-To: <E1w5so1-001bOK-1H@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