pgsql: Fix local/remote attribute mix-up in logical replication

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix local/remote attribute mix-up in logical replication
Date: 2017-08-07 14:53:29
Message-ID: E1dejPN-000420-Ak@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(dot)jelinek(at)2ndquadrant(dot)com>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/fca17a933b4b3cedcd41f14b0fe4d3fb439ea4a4

Modified Files
--------------
src/backend/replication/logical/worker.c | 3 ++-
src/test/subscription/t/001_rep_changes.pl | 5 ++++-
2 files changed, 6 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2017-08-07 15:47:09 pgsql: Last-minute updates for release notes.
Previous Message Tom Lane 2017-08-07 14:19:40 pgsql: Require update permission for the large object written by lo_put