From 40c516bba864395c77bcfb1bae65ba9562ba8f71 Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Mon, 1 Nov 2021 13:07:23 -0300 Subject: [PATCH] Handle XLOG_OVERWRITE_CONTRECORD in DecodeXLogOp MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Failing to do so results in inability of logical decoding to process the WAL stream. Handle it by doing nothing. Backpatch all the way back. Reported-by: Petr Jelínek --- src/backend/replication/logical/decode.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend/replication/logical/decode.c b/src/backend/replication/logical/decode.c index 2874dc06122..a2b69511b43 100644 --- a/src/backend/replication/logical/decode.c +++ b/src/backend/replication/logical/decode.c @@ -224,6 +224,7 @@ DecodeXLogOp(LogicalDecodingContext *ctx, XLogRecordBuffer *buf) case XLOG_FPW_CHANGE: case XLOG_FPI_FOR_HINT: case XLOG_FPI: + case XLOG_OVERWRITE_CONTRECORD: break; default: elog(ERROR, "unexpected RM_XLOG_ID record type: %u", info); -- 2.39.5