pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: bufmgr: Remove the, now obsolete, BM_JUST_DIRTIED
Date: Wed, 11 Mar 2026 19:02:57 +0000
Message-ID: <E1w0Opd-003Vf4-2z@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1w0Opd-003Vf4-2z@gemulon.postgresql.org>
Permalink:  ../E1w0Opd-003Vf4-2z@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1w0Opd-003Vf4-2z@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de
  Subject: Re: pgsql: bufmgr: Remove the, now obsolete, BM_JUST_DIRTIED
  In-Reply-To: <E1w0Opd-003Vf4-2z@gemulon.postgresql.org>
  References: <E1w0Opd-003Vf4-2z@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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