pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Don't reset additional columns on subscriber to NULL on UPDATE 2+ messages / 1 participants [nested] [flat]
* pgsql: Don't reset additional columns on subscriber to NULL on UPDATE @ 2017-11-03 16:35 Peter Eisentraut <peter_e@gmx.net> 0 siblings, 0 replies; 2+ messages in thread From: Peter Eisentraut @ 2017-11-03 16:35 UTC (permalink / raw) To: pgsql-committers 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> Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/a14b52c61454e3d23f7d0ab0affa56f8abfdf505 Modified Files -------------- src/backend/replication/logical/worker.c | 7 ++- src/test/subscription/t/008_diff_schema.pl | 80 ++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+), 2 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Don't reset additional columns on subscriber to NULL on UPDATE @ 2017-11-03 16:35 Peter Eisentraut <peter_e@gmx.net> 0 siblings, 0 replies; 2+ messages in thread From: Peter Eisentraut @ 2017-11-03 16:35 UTC (permalink / raw) To: pgsql-committers 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> Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/a9fce66729ad5217e8219e22e595974059c21291 Modified Files -------------- src/backend/replication/logical/worker.c | 7 ++- src/test/subscription/t/008_diff_schema.pl | 80 ++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+), 2 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2017-11-03 16:35 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2017-11-03 16:35 pgsql: Don't reset additional columns on subscriber to NULL on UPDATE Peter Eisentraut <peter_e@gmx.net> 2017-11-03 16:35 pgsql: Don't reset additional columns on subscriber to NULL on UPDATE Peter Eisentraut <peter_e@gmx.net>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox