projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d87d5f8
)
Handle XLOG_OVERWRITE_CONTRECORD in DecodeXLogOp
author
Alvaro Herrera
<
[email protected]
>
Mon, 1 Nov 2021 16:07:23 +0000
(13:07 -0300)
committer
Alvaro 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
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/replication/logical/decode.c
b/src/backend/replication/logical/decode.c
index 3778ea9228d4b46044fad7cc1c76cbe2c11c5199..6f8920f52cb2e985836138be29f2096476bdd3aa 100644
(file)
--- 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_FPI_FOR_HINT:
case XLOG_FPI:
case XLOG_FPI_MULTI:
+ case XLOG_OVERWRITE_CONTRECORD:
break;
default:
elog(ERROR, "unexpected RM_XLOG_ID record type: %u", info);