Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 38E2BB6157B for ; Wed, 1 Jun 2011 12:40:38 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 17720-03 for ; Wed, 1 Jun 2011 15:40:30 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by mail.postgresql.org (Postfix) with SMTP id 9642BB6164C for ; Wed, 1 Jun 2011 12:40:29 -0300 (ADT) Received: (qmail invoked by alias); 01 Jun 2011 15:40:25 -0000 Received: from a88-115-218-165.elisa-laajakaista.fi (EHLO [10.0.0.101]) [88.115.218.165] by mail.gmx.net (mp066) with SMTP; 01 Jun 2011 17:40:25 +0200 X-Authenticated: #495269 X-Provags-ID: V01U2FsdGVkX1/C7xc8HE/CAwa479AoIr1vT+1mLq8NPpNtUptlgr bkQP7NtFDephvL Subject: Re: [BUGS] BUG #6034: pg_upgrade fails when it should not. From: Peter Eisentraut To: Bruce Momjian Cc: Robert Haas , Tim Uckun , PostgreSQL-development In-Reply-To: <201105241959.p4OJxxL05180@momjian.us> References: <201105241959.p4OJxxL05180@momjian.us> Content-Type: text/plain; charset="UTF-8" Date: Wed, 01 Jun 2011 18:40:21 +0300 Message-ID: <1306942821.2279.0.camel@vanquo.pezone.net> Mime-Version: 1.0 X-Mailer: Evolution 2.32.3 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.909 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201106/34 X-Sequence-Number: 188747 On tis, 2011-05-24 at 15:59 -0400, Bruce Momjian wrote: > > 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.) On FreeBSD, locale names appear to be case-sensitive: $ LC_ALL=en_US.UTF-8 locale charmap UTF-8 $ LC_ALL=en_US.utf-8 locale charmap US-ASCII $ LC_ALL=de_DE.UTF-8 date Mi 1 Jun 2011 18:22:24 EEST $ LC_ALL=de_DE.utf-8 date Wed Jun 1 18:22:47 EEST 2011 So I think that change needs to be reverted.