replace_check_of_ReorderBufferProcessTXN_v01.patch
application/octet-stream
Filename: replace_check_of_ReorderBufferProcessTXN_v01.patch
Type: application/octet-stream
Part: 0
Patch
Format: unified
Series: patch v1
| File | + | − |
|---|---|---|
| src/backend/replication/logical/reorderbuffer.c | 6 | 2 |
diff --git a/src/backend/replication/logical/reorderbuffer.c b/src/backend/replication/logical/reorderbuffer.c index 5cb484f..f708ef6 100644 --- a/src/backend/replication/logical/reorderbuffer.c +++ b/src/backend/replication/logical/reorderbuffer.c @@ -2267,8 +2267,12 @@ ReorderBufferProcessTXN(ReorderBuffer *rb, ReorderBufferTXN *txn, if (!RelationIsValid(relation)) elog(ERROR, "could not open relation with OID %u", relid); - if (!RelationIsLogicallyLogged(relation)) - continue; + /* + * Logging the truncate has already done this + * test. See ExecuteTruncate for more information + * of the WAL write. + */ + Assert(RelationIsLogicallyLogged(relation)); relations[nrelations++] = relation; }