pgsql: Recovery: ensure CLOG updates wait for minRecoveryPoint.

Поиск
Список
Период
Сортировка
Искать

pgsql: Recovery: ensure CLOG updates wait for minRecoveryPoint.

От:
Jeff Davis <jdavis@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 
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(-)

FAQ