Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 76864B5DBDB for ; Tue, 24 May 2011 00:10:21 -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 51573-06 for ; Tue, 24 May 2011 03:10:14 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-gy0-f174.google.com (mail-gy0-f174.google.com [209.85.160.174]) by mail.postgresql.org (Postfix) with ESMTP id 5DC12B5DBD8 for ; Tue, 24 May 2011 00:10:14 -0300 (ADT) Received: by gyd10 with SMTP id 10so2401784gyd.19 for ; Mon, 23 May 2011 20:10:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=mvQzZqqeEnJPUdPwCqlWPpOeJRiGHXrNtnURlhP35rQ=; b=lpWd4sotYHecl75YBZYLn7tRrts5gXwpHii68Bl3JXz1UVJI9sfAT0cDlzthqgVVPO l4On7BGOTXAs3R8MmwrQZ0rgVVFHL0vtsk1Tbrss9rOoxPUWtXTqmJMVTGf7b41Im3Za 592KGfIr4mex10yFGbGTMIfRibyYrgjtpCvVo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=cUEol6csd8t6MAilFwTfww8aCa0huNs+0tmo0DuCgCYr1CA6g3E9Z0ARNRtfma0BUh d8kjAY81TzwdJpT7/zntEyMwc+ValW2ut7uN8W6WOAZRqY1m7yFZEk8tJni2sjiXVcxt nM3qOFuCeBGyORYzOr8AZNut4e/80GTv18RYs= MIME-Version: 1.0 Received: by 10.236.154.164 with SMTP id h24mr3897334yhk.474.1306206613383; Mon, 23 May 2011 20:10:13 -0700 (PDT) Received: by 10.236.105.180 with HTTP; Mon, 23 May 2011 20:10:13 -0700 (PDT) In-Reply-To: <201105231857.p4NIvRh13495@momjian.us> References: <201105231857.p4NIvRh13495@momjian.us> Date: Mon, 23 May 2011 23:10:13 -0400 Message-ID: Subject: Re: [BUGS] BUG #6034: pg_upgrade fails when it should not. From: Robert Haas To: Bruce Momjian Cc: Tim Uckun , PostgreSQL-development Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.898 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RFC_ABUSE_POST=0.001 X-Spam-Level: X-Archive-Number: 201105/1119 X-Sequence-Number: 188153 On Mon, May 23, 2011 at 2:57 PM, Bruce Momjian wrote: > Robert Haas wrote: >> On Mon, May 23, 2011 at 8:26 AM, Bruce Momjian wrote: >> > Sorry, I was unclear. ?The question is whether the case of _name_ of t= he >> > locale is significant, meaning can you have two locale names that diff= er >> > only by case and behave differently? >> >> That would seem surprising to me, but I really have no idea. >> >> There's the other direction, too: two locales that vary by something >> more than case, but still have identical behavior. =A0Maybe we just >> decide not to worry about that, but then why worry about this? > > Well, if we remove the check then people could easily get broken > upgrades by upgrading to a server with a different locale. =A0A Google > search seems to indicate the locale names are case-sensitive so I am > thinking the problem is that the user didn't have exact locales, and > needs that to use pg_upgrade. 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. --=20 Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company