git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2b91911)
Pg_upgrade C comment addition.
2011年4月20日 09:44:45 +0000 (05:44 -0400)
2011年4月20日 09:45:31 +0000 (05:45 -0400)
Document why we do the missing new database check during the check
phase.


diff --git a/contrib/pg_upgrade/check.c b/contrib/pg_upgrade/check.c
index 173b29a2c5ff3daad7d52d3b94f6723819aae422..d1dc5dbeaacc0f61812814536cc6c78299fcdc5a 100644 (file)
--- a/contrib/pg_upgrade/check.c
+++ b/contrib/pg_upgrade/check.c
@@ -372,7 +372,9 @@ check_new_cluster_is_empty(void)
* the new cluster has a 'postgres' database, the number of databases
* 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
- * 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
check_old_cluster_has_new_cluster_dbs(void)
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /