projects
/
postgresql
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80cbf34
)
Allow pg_upgrade to upgrade clusters that use exclusion contraints by
author
Bruce Momjian
<bruce@momjian.us>
Fri, 25 Nov 2011 19:34:51 +0000
(14:34 -0500)
committer
Bruce Momjian
<bruce@momjian.us>
Fri, 25 Nov 2011 19:39:18 +0000
(14:39 -0500)
fixing pg_dump to properly preserve such indexes.
Backpatch to 9.1 and 9.0 (where the bug was introduced).
src/bin/pg_dump/pg_dump.c
patch
|
blob
|
history
diff --git
a/src/bin/pg_dump/pg_dump.c
b/src/bin/pg_dump/pg_dump.c
index aa0b56c5a0d144f9e0b443b85e79d871cf3bd02d..d20939e28fcf179da889b6a020a8bd9579285b79 100644
(file)
--- 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",