From: Bruce Momjian Date: Fri, 25 Nov 2011 19:34:51 +0000 (-0500) Subject: Allow pg_upgrade to upgrade clusters that use exclusion contraints by X-Git-Tag: REL9_0_6~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d1644d9c31102e12560c864fae10bb7ab1826adb;p=thirdparty%2Fpostgresql.git 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). --- diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index aa0b56c5a0d..d20939e28fc 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -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",