Throw error for mismatched pg_upgrade clusters

Bruce Momjian <bruce@momjian.us>

Commit: 7228d02989afd3858ce6eb4de845c56f4c0188a6
Author: Bruce Momjian <bruce@momjian.us>
Date: 2011-04-20T01:00:29Z
Releases: 9.1.0
Throw error for mismatched pg_upgrade clusters

If someone removes the 'postgres' database from the old cluster and 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.

Previously they got an error during the upgrade, and not at the check
stage; PG 9.0.4 does the same.

Files

PathChange+/−
contrib/pg_upgrade/check.c modified +34 −12
contrib/pg_upgrade/relfilenode.c modified +0 −6