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

Commit 345fb82

Browse files
committed
Add pg_upgrade comment about mismatch error
Add comment stating that constraint and index names must match.
1 parent e43f947 commit 345fb82

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contrib/pg_upgrade/info.c

+3
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ gen_db_file_maps(DbInfo *old_db, DbInfo *new_db,
6161
* 9.0, TOAST relation names always use heap table oids, hence we
6262
* cannot check relation names when upgrading from pre-9.0. Clusters
6363
* upgraded to 9.0 will get matching TOAST names.
64+
* If index names don't match primary key constraint names, this will
65+
* fail because pg_dump dumps constraint names and pg_upgrade checks
66+
* index names.
6467
*/
6568
if (strcmp(old_rel->nspname, new_rel->nspname) != 0 ||
6669
((GET_MAJOR_VERSION(old_cluster.major_version) >= 900 ||

0 commit comments

Comments
 (0)