| From: | Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Move some code from shmem.c and shmem.h |
| Date: | 2026-04-05 23:27:43 |
| Message-ID: | E1w9WsZ-00399q-04@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Move some code from shmem.c and shmem.h
A little refactoring in preparation for the next commit, to make the
material changes in that commit more clear.
Reviewed-by: Ashutosh Bapat <ashutosh(dot)bapat(dot)oss(at)gmail(dot)com>
Reviewed-by: Matthias van de Meent <boekewurm+postgres(at)gmail(dot)com>
Discussion: https://www.postgresql.org/message-id/CAExHW5vM1bneLYfg0wGeAa=52UiJ3z4vKd3AJ72X8Fw6k3KKrg@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/6ef9bee29310fa519b1b0f01221fcf1c41a33679
Modified Files
--------------
src/backend/postmaster/launch_backend.c | 1 +
src/backend/storage/ipc/Makefile | 1 +
src/backend/storage/ipc/ipci.c | 1 +
src/backend/storage/ipc/meson.build | 1 +
src/backend/storage/ipc/shmem.c | 119 +--------------------------
src/backend/storage/ipc/shmem_hash.c | 139 ++++++++++++++++++++++++++++++++
src/include/storage/shmem.h | 29 +++----
src/include/storage/shmem_internal.h | 41 ++++++++++
8 files changed, 194 insertions(+), 138 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Heikki Linnakangas | 2026-04-05 23:27:44 | pgsql: Convert buffer manager to use the new shmem allocation functions |
| Previous Message | Andres Freund | 2026-04-05 23:11:55 | pgsql: instrumentation: Separate per-node logic from other uses |