pgsql: Properly dump dropped foreign table cols in binary-upgrade mode.

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Properly dump dropped foreign table cols in binary-upgrade mode.
Date: 2013-06-25 17:47:27
Message-ID: E1UrXKx-0004k4-5B@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Properly dump dropped foreign table cols in binary-upgrade mode.

In binary upgrade mode, we need to recreate and then drop dropped
columns so that all the columns get the right attribute number. This is
true for foreign tables as well as for native tables. For foreign
tables we have been getting the first part right but not the second,
leading to bogus columns in the upgraded database. Fix this all the way
back to 9.1, where foreign tables were introduced.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/81166a2f7e1e792a746c907fe9e0318cc736311a

Modified Files
--------------
src/bin/pg_dump/pg_dump.c | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2013-06-25 17:47:36 pgsql: Properly dump dropped foreign table cols in binary-upgrade mode.
Previous Message Fujii Masao 2013-06-25 17:21:50 pgsql: Support clean switchover.