pgsql: Throw error for mismatched pg_upgrade clusters

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Throw error for mismatched pg_upgrade clusters
Date: 2011-04-20 01:00:59
Message-ID: E1QCLmt-0006FM-1I@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/7228d02989afd3858ce6eb4de845c56f4c0188a6

Modified Files
--------------
contrib/pg_upgrade/check.c | 46 ++++++++++++++++++++++++++++----------
contrib/pg_upgrade/relfilenode.c | 6 -----
2 files changed, 34 insertions(+), 18 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Hiroshi Inoue 2011-04-20 01:42:35 Re: [HACKERS] Re: pgsql: setlocale() on Windows doesn't work correctly if the locale name
Previous Message Tom Lane 2011-04-20 00:22:23 Re: [HACKERS] Re: pgsql: setlocale() on Windows doesn't work correctly if the locale name