pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: refactor: Move BackendWritebackContext initialization 2+ messages / 1 participants [nested] [flat]
* pgsql: refactor: Move BackendWritebackContext initialization @ 2026-10-09 22:21 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 2+ messages in thread From: Heikki Linnakangas @ 2026-10-09 22:21 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org refactor: Move BackendWritebackContext initialization BackendWritebackContext is a purely per-process thing, so it feels wrong to initialize it in the shmem init/attach functions. Move the initialization to InitBufferManagerAccess() instead. Backpatch to version 19, where the new shared memory callbacks system was introduced. While this isn't new with that, it made the ShmemInit functions more closely related to shared memory initialization than before. Reviewed-by: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com> Reviewed-by: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com> Discussion: https://www.postgresql.org/message-id/fb1bd612-4a58-4235-976f-2b2ef036bfff@iki.fi Backpatch-through: 19 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/15a947f30726cadff695b7601329d90b6703e268 Modified Files -------------- src/backend/storage/buffer/buf_init.c | 15 --------------- src/backend/storage/buffer/bufmgr.c | 6 ++++++ src/include/storage/buf_internals.h | 1 - 3 files changed, 6 insertions(+), 16 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: refactor: Move BackendWritebackContext initialization @ 2026-10-09 22:21 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 2+ messages in thread From: Heikki Linnakangas @ 2026-10-09 22:21 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org refactor: Move BackendWritebackContext initialization BackendWritebackContext is a purely per-process thing, so it feels wrong to initialize it in the shmem init/attach functions. Move the initialization to InitBufferManagerAccess() instead. Backpatch to version 19, where the new shared memory callbacks system was introduced. While this isn't new with that, it made the ShmemInit functions more closely related to shared memory initialization than before. Reviewed-by: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com> Reviewed-by: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com> Discussion: https://www.postgresql.org/message-id/fb1bd612-4a58-4235-976f-2b2ef036bfff@iki.fi Backpatch-through: 19 Branch ------ REL_19_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/1feb619383d05395936c6c52144500c7becb409e Modified Files -------------- src/backend/storage/buffer/buf_init.c | 15 --------------- src/backend/storage/buffer/bufmgr.c | 6 ++++++ src/include/storage/buf_internals.h | 1 - 3 files changed, 6 insertions(+), 16 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2026-10-09 22:21 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2026-10-09 22:21 pgsql: refactor: Move BackendWritebackContext initialization Heikki Linnakangas <heikki.linnakangas@iki.fi> 2026-10-09 22:21 pgsql: refactor: Move BackendWritebackContext initialization Heikki Linnakangas <heikki.linnakangas@iki.fi>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox