]> granicus.if.org Git - postgresql/commit
Properly dump dropped foreign table cols in binary-upgrade mode.
authorAndrew Dunstan <andrew@dunslane.net>
Tue, 25 Jun 2013 17:44:34 +0000 (13:44 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Tue, 25 Jun 2013 17:44:34 +0000 (13:44 -0400)
commit1c6afc40f7f9e3fd823e415adbfa6b2ac6f9864d
treec87dc3b99f9d2efb5e476fa9791bc952aab21ccd
parent3f145f6be3d307af1ac7ceb808b6cf0486bc0c9e
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.
src/bin/pg_dump/pg_dump.c