]> granicus.if.org Git - postgresql/commit
Fix local/remote attribute mix-up in logical replication
authorPeter Eisentraut <peter_e@gmx.net>
Mon, 7 Aug 2017 14:49:08 +0000 (10:49 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Mon, 7 Aug 2017 14:49:08 +0000 (10:49 -0400)
commitfca17a933b4b3cedcd41f14b0fe4d3fb439ea4a4
treedce3559b39d9fa68ca4819a6bdaf390814c4c736
parent0e58455dd48ca9cbc9987c47b8297d10f1c307b0
Fix local/remote attribute mix-up in logical replication

This would lead to failures if local and remote tables have a different
column order.  The tests previously didn't catch that because they only
tested the initial data copy.  So add another test that exercises the
apply worker.

Author: Petr Jelinek <petr.jelinek@2ndquadrant.com>
src/backend/replication/logical/worker.c
src/test/subscription/t/001_rep_changes.pl