diff options
author | Bruce Momjian | 2011-11-25 19:35:52 +0000 |
---|---|---|
committer | Bruce Momjian | 2011-11-25 19:40:27 +0000 |
commit | 35e27226b6751a90c9c911d08cb47b9f8a58825f (patch) | |
tree | efa861b1e9a82f2b15be7966e6aad9492e9e3fc7 | |
parent | 9d3b50244357ef4c4e3b6e01f91de599077179c8 (diff) |
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).
-rw-r--r-- | src/bin/pg_dump/pg_dump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index 9bbf962cd01..28a527357f9 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -12948,7 +12948,7 @@ dumpConstraint(Archive *fout, ConstraintInfo *coninfo) exit_nicely(); } - if (binary_upgrade && !coninfo->condef) + if (binary_upgrade) binary_upgrade_set_pg_class_oids(q, indxinfo->dobj.catId.oid, true); appendPQExpBuffer(q, "ALTER TABLE ONLY %s\n", |