agora inbox for pgsql-committers@postgresql.org
help / color / mirror / Atom feedFrom: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Convert all remaining subsystems to use the new shmem allocation
Date: Sun, 05 Apr 2026 23:27:44 +0000
Message-ID: <E1w9WsZ-0039AO-1J@gemulon.postgresql.org> (raw)
Convert all remaining subsystems to use the new shmem allocation API
This removes all remaining uses of ShmemInitStruct() and
ShmemInitHash() from built-in code.
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/9b5acad3f40fa6015f367fbf887ae5c1a93a3698
Modified Files
--------------
src/backend/access/common/syncscan.c | 76 +++++----
src/backend/access/nbtree/nbtutils.c | 54 ++++---
src/backend/access/transam/twophase.c | 75 ++++-----
src/backend/access/transam/xlog.c | 82 +++++-----
src/backend/access/transam/xlogprefetcher.c | 51 +++---
src/backend/access/transam/xlogrecovery.c | 35 +++--
src/backend/access/transam/xlogwait.c | 50 +++---
src/backend/postmaster/autovacuum.c | 79 +++++-----
src/backend/postmaster/bgworker.c | 105 ++++++-------
src/backend/postmaster/checkpointer.c | 56 +++----
src/backend/postmaster/datachecksum_state.c | 41 ++---
src/backend/postmaster/pgarch.c | 43 +++--
src/backend/postmaster/walsummarizer.c | 60 +++----
src/backend/replication/logical/launcher.c | 56 +++----
src/backend/replication/logical/logicalctl.c | 29 ++--
src/backend/replication/logical/origin.c | 59 ++++---
src/backend/replication/logical/slotsync.c | 41 ++---
src/backend/replication/slot.c | 64 ++++----
src/backend/replication/walreceiverfuncs.c | 51 +++---
src/backend/replication/walsender.c | 59 ++++---
src/backend/storage/ipc/ipci.c | 124 +--------------
src/backend/storage/lmgr/lock.c | 109 +++++--------
src/backend/utils/activity/backend_status.c | 173 ++++++++-------------
src/backend/utils/activity/pgstat_shmem.c | 158 ++++++++++---------
src/backend/utils/activity/wait_event.c | 83 +++++-----
src/backend/utils/misc/injection_point.c | 57 ++++---
src/include/access/nbtree.h | 2 -
src/include/access/syncscan.h | 2 -
src/include/access/twophase.h | 3 -
src/include/access/xlog.h | 2 -
src/include/access/xlogprefetcher.h | 3 -
src/include/access/xlogrecovery.h | 3 -
src/include/access/xlogwait.h | 2 -
src/include/pgstat.h | 4 -
src/include/postmaster/autovacuum.h | 4 -
src/include/postmaster/bgworker_internals.h | 2 -
src/include/postmaster/bgwriter.h | 3 -
src/include/postmaster/datachecksum_state.h | 4 -
src/include/postmaster/pgarch.h | 2 -
src/include/postmaster/walsummarizer.h | 2 -
src/include/replication/logicalctl.h | 2 -
src/include/replication/logicallauncher.h | 3 -
src/include/replication/origin.h | 4 -
src/include/replication/slot.h | 4 -
src/include/replication/slotsync.h | 2 -
src/include/replication/walreceiver.h | 2 -
src/include/replication/walsender.h | 2 -
src/include/storage/lock.h | 2 -
src/include/storage/subsystemlist.h | 27 ++++
src/include/utils/backend_status.h | 8 -
src/include/utils/injection_point.h | 3 -
src/include/utils/wait_event.h | 2 -
.../modules/injection_points/injection_points.c | 59 +++----
src/test/modules/test_aio/test_aio.c | 107 ++++++-------
54 files changed, 927 insertions(+), 1208 deletions(-)
view thread (3+ messages) latest in thread
Message-ID: <E1w9WsZ-0039AO-1J@gemulon.postgresql.org>
Permalink: ../E1w9WsZ-0039AO-1J@gemulon.postgresql.org/
Also on: postgresql.org/message-id/E1w9WsZ-0039AO-1J@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: Convert all remaining subsystems to use the new shmem allocation
In-Reply-To: <E1w9WsZ-0039AO-1J@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