From 8f067b0cc22766b09381a7a8778ab1889435f257 Mon Sep 17 00:00:00 2001 From: Hou Zhijie Date: Fri, 25 Nov 2022 10:12:00 +0800 Subject: [PATCH] fix column list for old tuple Fix the bug that the columns of old tuples are not filtered. --- src/backend/replication/logical/proto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/replication/logical/proto.c b/src/backend/replication/logical/proto.c index ff8513e..f9de1d1 100644 --- a/src/backend/replication/logical/proto.c +++ b/src/backend/replication/logical/proto.c @@ -478,7 +478,7 @@ logicalrep_write_update(StringInfo out, TransactionId xid, Relation rel, pq_sendbyte(out, 'O'); /* old tuple follows */ else pq_sendbyte(out, 'K'); /* old key follows */ - logicalrep_write_tuple(out, rel, oldslot, binary, NULL); + logicalrep_write_tuple(out, rel, oldslot, binary, columns); } pq_sendbyte(out, 'N'); /* new tuple follows */ -- 2.7.2.windows.1