Skip to content

Commit 0262251

Browse files
committed
Pg_upgrade C comment addition.
Document why we do the missing new database check during the check phase.
1 parent 2b91911 commit 0262251

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

contrib/pg_upgrade/check.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,9 @@ check_new_cluster_is_empty(void)
372372
* the new cluster has a 'postgres' database, the number of databases
373373
* will not match. We actually could upgrade such a setup, but it would
374374
* violate the 1-to-1 mapping of database counts, so we throw an error
375-
* instead.
375+
* instead. We would detect this as a database count mismatch during
376+
* upgrade, but we want to detect it during the check phase and report
377+
* the database name.
376378
*/
377379
static void
378380
check_old_cluster_has_new_cluster_dbs(void)

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