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: Use ShmemInitStruct to allocate shmem for semaphores
Date: Mon, 30 Mar 2026 20:40:20 +0000
Message-ID: <E1w7JPH-002CUq-0z@gemulon.postgresql.org> (raw)

Use ShmemInitStruct to allocate shmem for semaphores

This makes them visible in pg_shmem_allocations

Reviewed-by: Tomas Vondra <tomas@vondra.me>
Discussion: https://www.postgresql.org/message-id/01ab1d41-3eda-4705-8bbd-af898f5007f1@iki.fi

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/40c41dc77306bf6f8f97b0012355c0dd8e11a430

Modified Files
--------------
src/backend/port/posix_sema.c | 4 +++-
src/backend/port/sysv_sema.c  | 5 ++++-
2 files changed, 7 insertions(+), 2 deletions(-)



Message-ID: <E1w7JPH-002CUq-0z@gemulon.postgresql.org>
Permalink:  ../E1w7JPH-002CUq-0z@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1w7JPH-002CUq-0z@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: Use ShmemInitStruct to allocate shmem for semaphores
  In-Reply-To: <E1w7JPH-002CUq-0z@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