Don't reset additional columns on subscriber to NULL on UPDATE
authorPeter Eisentraut <peter_e@gmx.net>
Fri, 3 Nov 2017 15:59:20 +0000 (11:59 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Fri, 3 Nov 2017 16:27:59 +0000 (12:27 -0400)
commita9fce66729ad5217e8219e22e595974059c21291
tree6b0535eb626bde3f4354c2ffe4db715a8ccbe0de
parentec42a1dcb30de235b252f6d4972f2f2bdb2e47f2
Don't reset additional columns on subscriber to NULL on UPDATE

When a publisher table has fewer columns than a subscriber, the update
of a row on the publisher should result in updating of only the columns
in common.  The previous coding mistakenly reset the values of
additional columns on the subscriber to NULL because it failed to skip
updates of columns not found in the attribute map.

Author: Petr Jelinek <petr.jelinek@2ndquadrant.com>
src/backend/replication/logical/worker.c
src/test/subscription/t/008_diff_schema.pl [new file with mode: 0644]