Allow pg_upgrade to upgrade clusters that use exclusion contraints by

fixing pg_dump to properly preserve such indexes.

Backpatch to 9.1 and 9.0 (where the bug was introduced).
This commit is contained in:
Bruce Momjian 2011-11-25 14:34:51 -05:00
parent 80cbf3401c
commit d1644d9c31

View File

@ -11204,7 +11204,7 @@ dumpConstraint(Archive *fout, ConstraintInfo *coninfo)
exit_nicely();
}
if (binary_upgrade && !coninfo->condef)
if (binary_upgrade)
binary_upgrade_set_relfilenodes(q, indxinfo->dobj.catId.oid, true);
appendPQExpBuffer(q, "ALTER TABLE ONLY %s\n",