]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Introduce a registry of built-in shmem subsystems
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Sun, 5 Apr 2026 23:12:55 +0000 (02:12 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Sun, 5 Apr 2026 23:12:55 +0000 (02:12 +0300)
commit1fc2e9fbc0a3d17aa484dbfab11af58eb2cb20ad
tree42ac7c699b0cf166535cca79443b8d47ea464eeb
parentd4885af3d65325c1fcd319e98c634fde9a200443
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.com
src/backend/bootstrap/bootstrap.c
src/backend/postmaster/launch_backend.c
src/backend/postmaster/postmaster.c
src/backend/storage/ipc/ipci.c
src/backend/storage/ipc/shmem.c
src/backend/tcop/postgres.c
src/include/storage/ipc.h
src/include/storage/subsystemlist.h [new file with mode: 0644]
src/include/storage/subsystems.h [new file with mode: 0644]
src/tools/pginclude/headerscheck