]> granicus.if.org Git - postgresql/commit
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:28:08 +0000 (12:28 -0400)
commita14b52c61454e3d23f7d0ab0affa56f8abfdf505
treeb2a5c0e69a66516dcc8835595f679f3c9c8b44fb
parent37a856567c04cf48d38292afc487be5f2665c2a5
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]