Handle XLOG_OVERWRITE_CONTRECORD in DecodeXLogOp
authorAlvaro Herrera <[email protected]>
Mon, 1 Nov 2021 16:07:23 +0000 (13:07 -0300)
committerAlvaro Herrera <[email protected]>
Mon, 1 Nov 2021 16:07:23 +0000 (13:07 -0300)
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 <[email protected]>
src/backend/replication/logical/decode.c

index ff18861276fcb162193c484b2552e89fda420df3..60d07ce4eb5151ea2ffbbae2d5b3c178e102588d 100644 (file)
@@ -199,6 +199,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);