pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedFrom: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Convert SLRUs to use the new shmem allocation functions
Date: Sun, 05 Apr 2026 23:27:44 +0000
Message-ID: <E1w9WsZ-0039AB-0k@gemulon.postgresql.org> (raw)
Convert SLRUs to use the new shmem allocation functions
I replaced the old SimpleLruInit() function without a backwards
compatibility wrapper, because few extensions define their own SLRUs.
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/2e0943a8597e1eeaec184465ba8b1f2f453a69e0
Modified Files
--------------
src/backend/access/transam/clog.c | 53 +++--
src/backend/access/transam/commit_ts.c | 85 +++----
src/backend/access/transam/multixact.c | 136 ++++++------
src/backend/access/transam/slru.c | 366 ++++++++++++++++---------------
src/backend/access/transam/subtrans.c | 57 +++--
src/backend/commands/async.c | 115 +++++-----
src/backend/storage/ipc/ipci.c | 16 --
src/backend/storage/ipc/shmem.c | 9 +-
src/backend/storage/lmgr/predicate.c | 273 ++++++++++-------------
src/backend/utils/activity/pgstat_slru.c | 1 +
src/include/access/clog.h | 2 -
src/include/access/commit_ts.h | 2 -
src/include/access/multixact.h | 2 -
src/include/access/slru.h | 114 ++++++----
src/include/access/subtrans.h | 2 -
src/include/commands/async.h | 3 -
src/include/storage/predicate.h | 5 -
src/include/storage/shmem_internal.h | 1 +
src/include/storage/subsystemlist.h | 10 +
src/test/modules/test_slru/test_slru.c | 106 ++++-----
src/tools/pgindent/typedefs.list | 4 +-
21 files changed, 689 insertions(+), 673 deletions(-)
Message-ID: <E1w9WsZ-0039AB-0k@gemulon.postgresql.org>
Permalink: ../E1w9WsZ-0039AB-0k@gemulon.postgresql.org/
Also on: postgresql.org/message-id/E1w9WsZ-0039AB-0k@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 SLRUs to use the new shmem allocation functions
In-Reply-To: <E1w9WsZ-0039AB-0k@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