diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2021-11-01 13:07:23 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2021-11-01 13:07:23 -0300 |
commit | 494ec0037e03854cd2c8a3e01c3c207d2886ce01 (patch) | |
tree | f0010426ba68f83a0eb1cc8b2fa519196f87f57d | |
parent | f255de9a456531d917a7488ad9d084201dedcfd2 (diff) | |
download | postgresql-494ec0037e03854cd2c8a3e01c3c207d2886ce01.tar.gz postgresql-494ec0037e03854cd2c8a3e01c3c207d2886ce01.zip |
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>
-rw-r--r-- | src/backend/replication/logical/decode.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backend/replication/logical/decode.c b/src/backend/replication/logical/decode.c index 453efc51e16..daf2efb0d83 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); |