pgsql: bufmgr: Remove the, now obsolete, BM_JUST_DIRTIED

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: bufmgr: Remove the, now obsolete, BM_JUST_DIRTIED
Date: 2026-03-11 19:02:57
Message-ID: E1w0Opd-003Vf4-2z@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

bufmgr: Remove the, now obsolete, BM_JUST_DIRTIED

Due to the recent changes to use a share-exclusive mode for setting hint bits
and for flushing pages - instead of using share mode as before - a buffer
cannot be dirtied while the flush is ongoing. The reason we needed
JUST_DIRTIED was to handle the case where the buffer was dirtied while IO was
ongoing - which is not possible anymore.

Discussion: https://postgr.es/m/5ubipyssiju5twkb7zgqwdr7q2vhpkpmuelxfpanetlk6ofnop@hvxb4g2amb2d

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b0f4ff3c92664e28615e2f885195c803156d47eb

Modified Files
--------------
src/backend/storage/buffer/bufmgr.c | 30 +++++++++---------------------
src/backend/storage/buffer/localbuf.c | 2 +-
src/include/storage/buf_internals.h | 3 +--
3 files changed, 11 insertions(+), 24 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2026-03-11 20:16:34 pgsql: Add support for altering CHECK constraint enforceability
Previous Message Melanie Plageman 2026-03-11 18:52:57 pgsql: Avoid WAL flush checks for unlogged buffers in GetVictimBuffer()