pgsql: Update minimum recovery point on truncation during WAL replay of - Mailing list pgsql-committers

From Fujii Masao
Subject pgsql: Update minimum recovery point on truncation during WAL replay of
Date
Msg-id E1m8mYO-0005nq-71@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Update minimum recovery point on truncation during WAL replay of abort record.

If a file is truncated, we must update minRecoveryPoint. Once a file is
truncated, there's no going back; it would not be safe to stop recovery
at a point earlier than that anymore.

Commit 7bffc9b7bf changed xact_redo_commit() so that it updates
minRecoveryPoint on truncation, but forgot to change xact_redo_abort().

Back-patch to all supported versions.

Reported-by: mengjuan.cmj@alibaba-inc.com
Author: Fujii Masao
Reviewed-by: Heikki Linnakangas
Discussion: https://postgr.es/m/b029fce3-4fac-4265-968e-16f36ff4d075.mengjuan.cmj@alibaba-inc.com

Branch
------
master

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

Modified Files
--------------
src/backend/access/transam/xact.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: John Naylor
Date:
Subject: pgsql: Disallow negative strides in date_bin()
Next
From: Fujii Masao
Date:
Subject: pgsql: Update minimum recovery point on truncation during WAL replay of