| From: | Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Refactor ShmemIndex initialization |
| Date: | 2026-03-26 10:09:40 |
| Message-ID: | E1w5hel-001Wej-1M@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Refactor ShmemIndex initialization
Initialize the ShmemIndex hash table in InitShmemAllocator() already,
removing the need for the separate InitShmemIndex() step.
Reviewed-by: Ashutosh Bapat <ashutosh(dot)bapat(dot)oss(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/6b8238cb6aa76924fa63640fe421c421d2fa5472
Modified Files
--------------
src/backend/storage/ipc/ipci.c | 8 +--
src/backend/storage/ipc/shmem.c | 143 ++++++++++++++++------------------------
src/include/storage/shmem.h | 1 -
3 files changed, 56 insertions(+), 96 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Fujii Masao | 2026-03-26 11:52:37 | pgsql: Fix premature NULL lag reporting in pg_stat_replication |
| Previous Message | Peter Eisentraut | 2026-03-26 08:14:12 | pgsql: MSVC: Remove unnecessary warning option |