aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2012-12-20 07:37:27 -0500
committerBruce Momjian <bruce@momjian.us>2012-12-20 07:37:27 -0500
commit345fb82f1616b4d44d8a67a6c10e964400d29c09 (patch)
tree300207dcf31bc6b136caf02e4636666360411a39
parente43f947bf32f3ea4caa5b895ca7c7659b17192ae (diff)
downloadpostgresql-345fb82f1616b4d44d8a67a6c10e964400d29c09.tar.gz
postgresql-345fb82f1616b4d44d8a67a6c10e964400d29c09.zip
Add pg_upgrade comment about mismatch error
Add comment stating that constraint and index names must match.
-rw-r--r--contrib/pg_upgrade/info.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/pg_upgrade/info.c b/contrib/pg_upgrade/info.c
index 22504427065..11ceb705676 100644
--- a/contrib/pg_upgrade/info.c
+++ b/contrib/pg_upgrade/info.c
@@ -61,6 +61,9 @@ gen_db_file_maps(DbInfo *old_db, DbInfo *new_db,
* 9.0, TOAST relation names always use heap table oids, hence we
* cannot check relation names when upgrading from pre-9.0. Clusters
* upgraded to 9.0 will get matching TOAST names.
+ * If index names don't match primary key constraint names, this will
+ * fail because pg_dump dumps constraint names and pg_upgrade checks
+ * index names.
*/
if (strcmp(old_rel->nspname, new_rel->nspname) != 0 ||
((GET_MAJOR_VERSION(old_cluster.major_version) >= 900 ||