1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-08 11:42:09 +03:00

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 <petr.jelinek@enterprisedb.com>
This commit is contained in:
Alvaro Herrera
2021-11-01 13:07:23 -03:00
parent d87d5f8d8d
commit 656312c2ac

View File

@ -196,6 +196,7 @@ DecodeXLogOp(LogicalDecodingContext *ctx, XLogRecordBuffer *buf)
case XLOG_FPI_FOR_HINT: case XLOG_FPI_FOR_HINT:
case XLOG_FPI: case XLOG_FPI:
case XLOG_FPI_MULTI: case XLOG_FPI_MULTI:
case XLOG_OVERWRITE_CONTRECORD:
break; break;
default: default:
elog(ERROR, "unexpected RM_XLOG_ID record type: %u", info); elog(ERROR, "unexpected RM_XLOG_ID record type: %u", info);