• Andrew Dunstan's avatar
    Properly dump dropped foreign table cols in binary-upgrade mode. · 81166a2f
    Andrew Dunstan authored
    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.
    81166a2f
pg_dump.c 445 KB