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: Convert buffer manager to use the new shmem allocation functions
Date: Sun, 05 Apr 2026 23:27:44 +0000
Message-ID: <E1w9WsZ-0039AL-1A@gemulon.postgresql.org> (raw)

Convert buffer manager to use the new shmem allocation functions

This rectifies the initialization functions a little, making the
"buffer strategy" stuff in freelist.c and buffer mapping hash table in
buf_init.c top-level "subsystems" of their own, registered directly in
subsystemlist.h. Previously they were called indirectly from
BufferManagerShmemInit() and BufferManagerShmemSize()

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/a4b6139dcceb47986577aef36e73f15187ceb727

Modified Files
--------------
src/backend/storage/buffer/buf_init.c  | 149 ++++++++++++++-------------------
src/backend/storage/buffer/buf_table.c |  54 ++++++------
src/backend/storage/buffer/freelist.c  |  93 +++++++-------------
src/backend/storage/ipc/ipci.c         |   3 -
src/include/storage/buf_internals.h    |   5 --
src/include/storage/bufmgr.h           |   4 -
src/include/storage/subsystemlist.h    |   3 +
7 files changed, 124 insertions(+), 187 deletions(-)



Message-ID: <E1w9WsZ-0039AL-1A@gemulon.postgresql.org>
Permalink:  ../E1w9WsZ-0039AL-1A@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1w9WsZ-0039AL-1A@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 buffer manager to use the new shmem allocation functions
  In-Reply-To: <E1w9WsZ-0039AL-1A@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