Skip to content

Commit d1644d9

Browse files
committed
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).
1 parent 80cbf34 commit d1644d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pg_dump/pg_dump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11204,7 +11204,7 @@ dumpConstraint(Archive *fout, ConstraintInfo *coninfo)
1120411204
exit_nicely();
1120511205
}
1120611206

11207-
if (binary_upgrade && !coninfo->condef)
11207+
if (binary_upgrade)
1120811208
binary_upgrade_set_relfilenodes(q, indxinfo->dobj.catId.oid, true);
1120911209

1121011210
appendPQExpBuffer(q, "ALTER TABLE ONLY %s\n",

0 commit comments

Comments
 (0)