]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Handle XLOG_OVERWRITE_CONTRECORD in DecodeXLogOp
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 1 Nov 2021 16:07:23 +0000 (13:07 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
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 <petr.jelinek@enterprisedb.com>
src/backend/replication/logical/decode.c

index 4985c2abe0c090ec11f8c632ed32b240f9285be1..5a2b828aa3fa50e1d2ee28cf7a522db00d87624a 100644 (file)
@@ -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);