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: Move ShmemIndexLock into ShmemAllocator
Date: Thu, 26 Mar 2026 22:03:58 +0000
Message-ID: <E1w5so1-001bOI-1D@gemulon.postgresql.org> (raw)

Move ShmemIndexLock into ShmemAllocator

This makes shmem.c independent of the main LWLock array. That makes it
possible to stop passing MainLWLockArray through BackendParameters in
the next commit.

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/06d859aaf4e988ddef8adc55efb21324c5e30092

Modified Files
--------------
src/backend/storage/ipc/shmem.c                 | 15 ++++++++++-----
src/backend/utils/activity/wait_event_names.txt |  2 +-
src/include/storage/lwlocklist.h                |  3 ++-
3 files changed, 13 insertions(+), 7 deletions(-)



Message-ID: <E1w5so1-001bOI-1D@gemulon.postgresql.org>
Permalink:  ../E1w5so1-001bOI-1D@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1w5so1-001bOI-1D@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: Move ShmemIndexLock into ShmemAllocator
  In-Reply-To: <E1w5so1-001bOI-1D@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