8000
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 8c19977 commit 0341944Copy full SHA for 0341944
contrib/pg_upgrade/relfilenode.c
@@ -37,6 +37,12 @@ transfer_all_new_dbs(DbInfoArr *old_db_arr,
37
38
prep_status("Restoring user relation files\n");
39
40
+ /*
41
+ * If the user removed the 'postgres' database from the old cluster,
42
+ * this will cause the database counts to not match and throw an error.
43
+ * We could allow this to work because the new database is empty (we
44
+ * checked), but we don't.
45
+ */
46
if (old_db_arr->ndbs != new_db_arr->ndbs)
47
pg_log(PG_FATAL, "old and new clusters have a different number of databases\n");
48
0 commit comments