summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2011-11-25 14:35:43 -0500
committerBruce Momjian <bruce@momjian.us>2011-11-25 14:39:50 -0500
commit6b5510e8d64f9c76b1c24c46537d5a83a3483778 (patch)
tree7c17e9f82bbb214e915ce3d51d33890c42ddab9c
parenteacff260fd220e82ca13cab2ad61d3aeb6eed445 (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.c2
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 b8809fe1e6f..7a65091450e 100644
--- a/src/bin/pg_dump/pg_dump.c
+++ b/src/bin/pg_dump/pg_dump.c
@@ -12708,7 +12708,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",