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

Lines changed: 3 additions & 0 deletions
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)
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