Convert buffer manager to use the new shmem allocation functions
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Author:
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2026-04-05T23:13:08Z
Releases:
19 (unreleased)
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/buffer/buf_init.c | modified | +62 −87 |
| src/backend/storage/buffer/buf_table.c | modified | +30 −24 |
| src/backend/storage/buffer/freelist.c | modified | +29 −64 |
| src/backend/storage/ipc/ipci.c | modified | +0 −3 |
| src/include/storage/buf_internals.h | modified | +0 −5 |
| src/include/storage/bufmgr.h | modified | +0 −4 |
| src/include/storage/subsystemlist.h | modified | +3 −0 |
Discussion
- Better shared data structure management and resizable shared data structures 87 messages · 2026-02-13 → 2026-06-15