Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ece1265 commit 9846dcfCopy full SHA for 9846dcf
contrib/pg_upgrade/check.c
@@ -403,8 +403,13 @@ check_old_cluster_has_new_cluster_dbs(void)
403
new_cluster.dbarr.dbs[new_dbnum].db_name) == 0)
404
break;
405
if (old_dbnum == old_cluster.dbarr.ndbs)
406
- pg_log(PG_FATAL, "New cluster database \"%s\" does not exist in the old cluster\n",
407
- new_cluster.dbarr.dbs[new_dbnum].db_name);
+ {
+ if (strcmp(new_cluster.dbarr.dbs[new_dbnum].db_name, "postgres") == 0)
408
+ pg_log(PG_FATAL, "The \"postgres\" database must exist in the old cluster\n");
409
+ else
410
+ pg_log(PG_FATAL, "New cluster database \"%s\" does not exist in the old cluster\n",
411
+ new_cluster.dbarr.dbs[new_dbnum].db_name);
412
+ }
413
}
414
415
0 commit comments