From: Michael Paquier Date: Wed, 30 Jun 2021 02:49:20 +0000 (+0900) Subject: Fix incorrect PITR message for transaction ROLLBACK PREPARED X-Git-Tag: REL_12_8~67 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b5ee867a79b67d859b29e19ceb73300e33627074;p=thirdparty%2Fpostgresql.git Fix incorrect PITR message for transaction ROLLBACK PREPARED Reaching PITR on such a transaction would cause the generation of a LOG message mentioning a transaction committed, not aborted. Oversight in 4f1b890. Author: Simon Riggs Discussion: https://postgr.es/m/CANbhV-GJ6KijeCgdOrxqMCQ+C8QiK657EMhCy4csjrPcEUFv_Q@mail.gmail.com Backpatch-through: 9.6 --- diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 67dcd1e126d..9f682c85677 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -5713,7 +5713,7 @@ recoveryStopsBefore(XLogReaderState *record) xl_xact_abort *xlrec = (xl_xact_abort *) XLogRecGetData(record); xl_xact_parsed_abort parsed; - isCommit = true; + isCommit = false; ParseAbortRecord(XLogRecGetInfo(record), xlrec, &parsed);