Introduce a registry of built-in shmem subsystems
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Author:
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2026-04-05T23:12:55Z
Releases:
19 (unreleased)
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/bootstrap/bootstrap.c | modified | +2 −0 |
| src/backend/postmaster/launch_backend.c | modified | +2 −0 |
| src/backend/postmaster/postmaster.c | modified | +5 −0 |
| src/backend/storage/ipc/ipci.c | modified | +21 −0 |
| src/backend/storage/ipc/shmem.c | modified | +4 −2 |
| src/backend/tcop/postgres.c | modified | +3 −0 |
| src/include/storage/ipc.h | modified | +1 −0 |
| src/include/storage/subsystemlist.h | added | +23 −0 |
| src/include/storage/subsystems.h | added | +30 −0 |
| src/tools/pginclude/headerscheck | modified | +1 −0 |
Discussion
- Better shared data structure management and resizable shared data structures 87 messages · 2026-02-13 → 2026-06-15