Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6b5510e

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 eacff26 commit 6b5510e

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
@@ -12708,7 +12708,7 @@ dumpConstraint(Archive *fout, ConstraintInfo *coninfo)
1270812708
exit_nicely();
1270912709
}
1271012710

12711-
if (binary_upgrade && !coninfo->condef)
12711+
if (binary_upgrade)
1271212712
binary_upgrade_set_pg_class_oids(q, indxinfo->dobj.catId.oid, true);
1271312713

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

0 commit comments

Comments
 (0)