aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2021-11-01 13:07:23 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2021-11-01 13:07:23 -0300
commit17227825ca4288c70af45038ac6af26be7fde570 (patch)
treeed459aa1d8f36adbfd246b3b8220200758b99702 /src
parent77f7909a409eac9ee9a5728a4f80741925580fb6 (diff)
downloadpostgresql-17227825ca4288c70af45038ac6af26be7fde570.tar.gz
postgresql-17227825ca4288c70af45038ac6af26be7fde570.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>
Diffstat (limited to 'src')
-rw-r--r--src/backend/replication/logical/decode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backend/replication/logical/decode.c b/src/backend/replication/logical/decode.c
index 4985c2abe0c..5a2b828aa3f 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_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);