Skip to content

Commit 35e2722

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 9d3b502 commit 35e2722

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
@@ -12948,7 +12948,7 @@ dumpConstraint(Archive *fout, ConstraintInfo *coninfo)
1294812948
exit_nicely();
1294912949
}
1295012950

12951-
if (binary_upgrade && !coninfo->condef)
12951+
if (binary_upgrade)
1295212952
binary_upgrade_set_pg_class_oids(q, indxinfo->dobj.catId.oid, true);
1295312953

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy