pgsql: Convert buffer manager to use the new shmem allocation functions - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Convert buffer manager to use the new shmem allocation functions
Date
Msg-id E1w9WsZ-0039AL-1A@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.com

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(-)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Introduce a registry of built-in shmem subsystems
Next
From: Michael Paquier
Date:
Subject: pgsql: Add tests for lock statistics, take two