pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Recovery: ensure CLOG updates wait for minRecoveryPoint.
6+ messages / 1 participants
[nested] [flat]

* pgsql: Recovery: ensure CLOG updates wait for minRecoveryPoint.
@ 2026-11-18 22:36  Jeff Davis <jdavis@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Jeff Davis @ 2026-11-18 22:36 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8303f2e13c5c2fab539e11054073a58942cb0f30

Modified Files
--------------
src/backend/access/transam/clog.c |  5 -----
src/backend/access/transam/xact.c | 17 ++++++++---------
2 files changed, 8 insertions(+), 14 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Recovery: ensure CLOG updates wait for minRecoveryPoint.
@ 2026-11-18 22:36  Jeff Davis <jdavis@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Jeff Davis @ 2026-11-18 22:36 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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_19_STABLE

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

Modified Files
--------------
src/backend/access/transam/clog.c |  5 -----
src/backend/access/transam/xact.c | 17 ++++++++---------
2 files changed, 8 insertions(+), 14 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Recovery: ensure CLOG updates wait for minRecoveryPoint.
@ 2026-11-18 22:36  Jeff Davis <jdavis@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Jeff Davis @ 2026-11-18 22:36 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Recovery: ensure CLOG updates wait for minRecoveryPoint.
@ 2026-11-18 22:37  Jeff Davis <jdavis@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Jeff Davis @ 2026-11-18 22:37 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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_17_STABLE

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

Modified Files
--------------
src/backend/access/transam/clog.c |  5 -----
src/backend/access/transam/xact.c | 17 ++++++++---------
2 files changed, 8 insertions(+), 14 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Recovery: ensure CLOG updates wait for minRecoveryPoint.
@ 2026-11-18 22:37  Jeff Davis <jdavis@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Jeff Davis @ 2026-11-18 22:37 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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_16_STABLE

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

Modified Files
--------------
src/backend/access/transam/clog.c |  5 -----
src/backend/access/transam/xact.c | 17 ++++++++---------
2 files changed, 8 insertions(+), 14 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Recovery: ensure CLOG updates wait for minRecoveryPoint.
@ 2026-11-18 22:37  Jeff Davis <jdavis@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Jeff Davis @ 2026-11-18 22:37 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/6ee74fe7389337a225603fa8ee3c0724e5baa057

Modified Files
--------------
src/backend/access/transam/clog.c |  5 -----
src/backend/access/transam/xact.c | 17 ++++++++---------
2 files changed, 8 insertions(+), 14 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2026-11-18 22:37 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-11-18 22:36 pgsql: Recovery: ensure CLOG updates wait for minRecoveryPoint. Jeff Davis <jdavis@postgresql.org>
2026-11-18 22:36 pgsql: Recovery: ensure CLOG updates wait for minRecoveryPoint. Jeff Davis <jdavis@postgresql.org>
2026-11-18 22:36 pgsql: Recovery: ensure CLOG updates wait for minRecoveryPoint. Jeff Davis <jdavis@postgresql.org>
2026-11-18 22:37 pgsql: Recovery: ensure CLOG updates wait for minRecoveryPoint. Jeff Davis <jdavis@postgresql.org>
2026-11-18 22:37 pgsql: Recovery: ensure CLOG updates wait for minRecoveryPoint. Jeff Davis <jdavis@postgresql.org>
2026-11-18 22:37 pgsql: Recovery: ensure CLOG updates wait for minRecoveryPoint. Jeff Davis <jdavis@postgresql.org>

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