Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 9E307B5DBD8 for ; Mon, 23 May 2011 09:26:40 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 88705-10 for ; Mon, 23 May 2011 12:26:29 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from momjian.us (momjian.us [70.90.9.53]) by mail.postgresql.org (Postfix) with ESMTP id 2C4FFB5D90E for ; Mon, 23 May 2011 09:26:29 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id p4NCQRa03476; Mon, 23 May 2011 08:26:27 -0400 (EDT) From: Bruce Momjian Message-Id: <201105231226.p4NCQRa03476@momjian.us> Subject: Re: [BUGS] BUG #6034: pg_upgrade fails when it should not. In-Reply-To: To: Robert Haas Date: Mon, 23 May 2011 08:26:27 -0400 (EDT) CC: Tim Uckun , PostgreSQL-development X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201105/1074 X-Sequence-Number: 188108 Robert Haas wrote: > On Sun, May 22, 2011 at 9:39 PM, Bruce Momjian wrote: > > Tim Uckun wrote: > >> pg_upgrade from 8.4 to 9.0 fails with the following error message. > >> > >> old and new cluster lc_collate values do not match > >> > >> > >> on 8.4 show lc_collate outputs > >> ------------ > >> ?en_NZ.utf8 > >> (1 row) > >> > >> > >> on 9.0 it outputs > >> ------------ > >> ?en_NZ.UTF8 > >> (1 row) > >> > >> > >> So the difference seems to be in capitalization. Presumably they are the > >> same collation with "different" names so it strikes me as odd that > >> pg_upgrade would balk and refuse to upgrade the database. > >> > >> pg_upgrade should be able to tell that these are the same collations and go > >> ahead with the upgrade. > >> > >> It also should give some indication of how to overcome the problem. > > > > [ Moved to hackers list.] > > > > Interesting. ?It can be easily fixed in the C code. ?Does anyone know of > > an example where the case of the locale name is significant in > > controlling the behavior? > > Uh, are we talking about locale, or collation? > > Because if it's collation, that seems certain to affect index contents. Sorry, I was unclear. The question is whether the case of _name_ of the locale is significant, meaning can you have two locale names that differ only by case and behave differently? -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +