Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 06765B61DB2 for ; Wed, 1 Jun 2011 14:21:18 -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 01591-07 for ; Wed, 1 Jun 2011 17:21:08 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id F2F10B612B3 for ; Wed, 1 Jun 2011 14:21:07 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p51HL3Ta021310; Wed, 1 Jun 2011 13:21:03 -0400 (EDT) To: Peter Eisentraut cc: Bruce Momjian , Robert Haas , Tim Uckun , PostgreSQL-development Subject: Re: [BUGS] BUG #6034: pg_upgrade fails when it should not. In-reply-to: <1306942821.2279.0.camel@vanquo.pezone.net> References: <201105241959.p4OJxxL05180@momjian.us> <1306942821.2279.0.camel@vanquo.pezone.net> Comments: In-reply-to Peter Eisentraut message dated "Wed, 01 Jun 2011 18:40:21 +0300" Date: Wed, 01 Jun 2011 13:21:03 -0400 Message-ID: <21309.1306948863@sss.pgh.pa.us> From: Tom Lane 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: 201106/42 X-Sequence-Number: 188755 Peter Eisentraut writes: >>> 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. > 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 Hm, surely the latter result indicates that "en_US.utf-8" is not in fact a valid locale name? It would only be a problem if different case-foldings of the same name represented valid but different locales on some platform, and that seems rather hard to believe (it would be a pretty foolish choice no?). So I'm inclined to leave the code alone. regards, tom lane