pgsql: Use ShmemInitStruct to allocate shmem for semaphores

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Use ShmemInitStruct to allocate shmem for semaphores
Date: 2026-03-30 20:40:20
Message-ID: E1w7JPH-002CUq-0z@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Use ShmemInitStruct to allocate shmem for semaphores

This makes them visible in pg_shmem_allocations

Reviewed-by: Tomas Vondra <tomas(at)vondra(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Nathan Bossart 2026-03-30 21:12:43 pgsql: Remove bits* typedefs.
Previous Message Melanie Plageman 2026-03-30 20:08:50 pgsql: Set pd_prune_xid on insert