mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Pg_upgrade C comment addition.
Document why we do the missing new database check during the check phase.
This commit is contained in:
@ -372,7 +372,9 @@ check_new_cluster_is_empty(void)
|
|||||||
* the new cluster has a 'postgres' database, the number of databases
|
* the new cluster has a 'postgres' database, the number of databases
|
||||||
* will not match. We actually could upgrade such a setup, but it would
|
* will not match. We actually could upgrade such a setup, but it would
|
||||||
* violate the 1-to-1 mapping of database counts, so we throw an error
|
* violate the 1-to-1 mapping of database counts, so we throw an error
|
||||||
* instead.
|
* instead. We would detect this as a database count mismatch during
|
||||||
|
* upgrade, but we want to detect it during the check phase and report
|
||||||
|
* the database name.
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
check_old_cluster_has_new_cluster_dbs(void)
|
check_old_cluster_has_new_cluster_dbs(void)
|
||||||
|
Reference in New Issue
Block a user