agora inbox for pgsql-committers@postgresql.org  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Introduce a registry of built-in shmem subsystems
Date: Sun, 05 Apr 2026 23:27:43 +0000
Message-ID: <E1w9WsZ-00399z-0J@gemulon.postgresql.org> (raw)

Introduce a registry of built-in shmem subsystems

To add a new built-in subsystem, add it to subsystemslist.h. That
hooks up its shmem callbacks so that they get called at the right
times during postmaster startup. For now this is unused, but will
replace the current SubsystemShmemSize() and SubsystemShmemInit()
calls in the next commits.

Reviewed-by: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Reviewed-by: Matthias van de Meent <boekewurm+postgres@gmail.com>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://www.postgresql.org/message-id/CAExHW5vM1bneLYfg0wGeAa=52UiJ3z4vKd3AJ72X8Fw6k3KKrg@mail.gmail...

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1fc2e9fbc0a3d17aa484dbfab11af58eb2cb20ad

Modified Files
--------------
src/backend/bootstrap/bootstrap.c       |  2 ++
src/backend/postmaster/launch_backend.c |  2 ++
src/backend/postmaster/postmaster.c     |  5 +++++
src/backend/storage/ipc/ipci.c          | 21 +++++++++++++++++++++
src/backend/storage/ipc/shmem.c         |  6 ++++--
src/backend/tcop/postgres.c             |  3 +++
src/include/storage/ipc.h               |  1 +
src/include/storage/subsystemlist.h     | 23 +++++++++++++++++++++++
src/include/storage/subsystems.h        | 30 ++++++++++++++++++++++++++++++
src/tools/pginclude/headerscheck        |  1 +
10 files changed, 92 insertions(+), 2 deletions(-)



Message-ID: <E1w9WsZ-00399z-0J@gemulon.postgresql.org>
Permalink:  ../E1w9WsZ-00399z-0J@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1w9WsZ-00399z-0J@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: Introduce a registry of built-in shmem subsystems
  In-Reply-To: <E1w9WsZ-00399z-0J@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 agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox