pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Geoghegan <pg@bowt.ie>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add nbtree README note on index-only scans in recovery.
Date: Sat, 10 Oct 2026 23:39:33 +0000
Message-ID: <E1xFgf7-000000018Zp-1Cy0@gemulon.postgresql.org> (raw)

Add nbtree README note on index-only scans in recovery.

The nbtree README has long claimed that "the interlocking required to
avoid returning incorrect results from non-MVCC scans is not required on
standby nodes".  A recent test case proved that the underlying reasoning
was faulty.

There are significant practical challenges around fixing this bug, and
no user has complained about it so far.  The old "pin scan" mechanism
prevented the problem but performed very poorly.  Since there seems to
be no appetite for resurrecting that mechanism, and since an acceptable
fix hasn't been forthcoming, make a note of the issue for later.

Discussion: https://postgr.es/m/CAH2-Wzkro678xEDOrsxrq-YDVP4w7nXybhVJV2MxrzTj-5OU4w@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9e7d152488f197e96f171f0714459c227c3f7693

Modified Files
--------------
src/backend/access/nbtree/README | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1xFgf7-000000018Zp-1Cy0@gemulon.postgresql.org>
Permalink:  ../E1xFgf7-000000018Zp-1Cy0@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1xFgf7-000000018Zp-1Cy0@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: pg@bowt.ie
  Subject: Re: pgsql: Add nbtree README note on index-only scans in recovery.
  In-Reply-To: <E1xFgf7-000000018Zp-1Cy0@gemulon.postgresql.org>
  References: <E1xFgf7-000000018Zp-1Cy0@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