From: Jeff Davis <jdavis@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Recovery: ensure CLOG updates wait for minRecoveryPoint.
Date: Wed, 18 Nov 2026 22:36:57 +0000
Message-ID: <E1xToGu-00000000Itf-3VHq@gemulon.postgresql.org> (raw)
Recovery: ensure CLOG updates wait for minRecoveryPoint.
The hot_standby=on case already used TransactionIdAsyncCommitTree();
use that for hot_standby=off, too.
Before this commit, it was possible that the CLOG status could reach
disk without advancing minRecoveryPoint. Recovering with PITR prior to
the transaction's commit record could incorrectly see the transaction
as committed.
Reviewed-by: Ayush Tiwari <ayushtiwari.slg01@gmail.com>
Discussion: https://postgr.es/m/62b070d14df4d9d5f44cb8da6f15546c30259053.camel@j-davis.com
Backpatch-through: 15
Branch
------
REL_18_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/cce784243d5478bdbdb535e0a1d3d06ddc136021
Modified Files
--------------
src/backend/access/transam/clog.c | 5 -----
src/backend/access/transam/xact.c | 17 ++++++++---------
2 files changed, 8 insertions(+), 14 deletions(-)
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: jdavis@postgresql.org
Subject: Re: pgsql: Recovery: ensure CLOG updates wait for minRecoveryPoint.
In-Reply-To: <E1xToGu-00000000Itf-3VHq@gemulon.postgresql.org>
References: <E1xToGu-00000000Itf-3VHq@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