diff options
author | Fujii Masao <fujii@postgresql.org> | 2021-07-29 01:34:13 +0900 |
---|---|---|
committer | Fujii Masao <fujii@postgresql.org> | 2021-07-29 01:35:00 +0900 |
commit | d7ded08e6e0e565adf6fea7c55bfcf2845e5f8cc (patch) | |
tree | 75724078e773c230c15f07fbffea2153ab264662 /src/backend/utils/adt/numeric.c | |
parent | c590904d50cc93b12fc895041c34e1ea821e768c (diff) | |
download | postgresql-d7ded08e6e0e565adf6fea7c55bfcf2845e5f8cc.tar.gz postgresql-d7ded08e6e0e565adf6fea7c55bfcf2845e5f8cc.zip |
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
Diffstat (limited to 'src/backend/utils/adt/numeric.c')
0 files changed, 0 insertions, 0 deletions