From: Alvaro Herrera Date: Mon, 1 Nov 2021 16:07:23 +0000 (-0300) Subject: Handle XLOG_OVERWRITE_CONTRECORD in DecodeXLogOp X-Git-Tag: REL_10_19~11 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=656312c2ac328aa8af20b4c5f0fab1f7f7202b2f;p=postgresql.git Handle XLOG_OVERWRITE_CONTRECORD in DecodeXLogOp 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 --- diff --git a/src/backend/replication/logical/decode.c b/src/backend/replication/logical/decode.c index 3778ea9228d..6f8920f52cb 100644 --- a/src/backend/replication/logical/decode.c +++ b/src/backend/replication/logical/decode.c @@ -196,6 +196,7 @@ DecodeXLogOp(LogicalDecodingContext *ctx, XLogRecordBuffer *buf) case XLOG_FPI_FOR_HINT: case XLOG_FPI: case XLOG_FPI_MULTI: + case XLOG_OVERWRITE_CONTRECORD: break; default: elog(ERROR, "unexpected RM_XLOG_ID record type: %u", info);