diff options
author | Bruce Momjian <bruce@momjian.us> | 2011-11-25 14:35:43 -0500 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2011-11-25 14:39:50 -0500 |
commit | 6b5510e8d64f9c76b1c24c46537d5a83a3483778 (patch) | |
tree | 7c17e9f82bbb214e915ce3d51d33890c42ddab9c /src | |
parent | eacff260fd220e82ca13cab2ad61d3aeb6eed445 (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).
Diffstat (limited to 'src')
-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 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", |