Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 35CBBB5DBE5 for ; Wed, 25 May 2011 13:41:31 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 22178-02 for ; Wed, 25 May 2011 16:41:24 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 27A65B5DBF7 for ; Wed, 25 May 2011 13:41:23 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id 13F30348045; Wed, 25 May 2011 09:41:23 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at commandprompt.com Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id khmvZcn-HQDD; Wed, 25 May 2011 09:41:21 -0700 (PDT) Received: from perhan.alvh.no-ip.org (unknown [190.95.22.219]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id DE471348044; Wed, 25 May 2011 09:41:20 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 1A0306E3FB; Wed, 25 May 2011 12:41:18 -0400 (CLT) Content-Type: text/plain; charset=UTF-8 Cc: Robert Haas , Tim Uckun , PostgreSQL-development Subject: Re: [BUGS] BUG #6034: pg_upgrade fails when it should not. From: Alvaro Herrera To: Bruce Momjian In-reply-to: <201105241959.p4OJxxL05180@momjian.us> References: <201105241959.p4OJxxL05180@momjian.us> Date: Wed, 25 May 2011 12:41:18 -0400 Message-Id: <1306341572-sup-4765@alvh.no-ip.org> User-Agent: Sup/git Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=-5 required=5 tests=none X-Spam-Level: X-Archive-Number: 201105/1275 X-Sequence-Number: 188309 Excerpts from Bruce Momjian's message of mar may 24 15:59:59 -0400 2011: > > I think you misread what I wrote, or I misexplained it, but never > > mind. Matching locale names case-insensitively sounds reasonable to > > me, unless someone has reason to believe it will blow up. > > OK, that's what I needed to hear. I have applied the attached patch, > but only to 9.1 because of the risk of breakage. (This was only the > first bug report of this, and we aren't 100% certain about the case > issue.) Hmm, I know the locale can be spelled "en_US.UTF-8" (note dash) in some systems. So if you have a locale alias that makes en_US.utf8 the same as en_US.UTF-8, the patched code would still not work. I wonder if there's a need for canonicalization somewhere. Or maybe this is just not worth the trouble. -- Álvaro Herrera The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support