pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Alvaro Herrera <alvherre@commandprompt.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Tim Uckun <timuckun@gmail.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: [BUGS] BUG #6034: pg_upgrade fails when it should not.
Date: Wed, 25 May 2011 13:22:36 -0400 (EDT)
Message-ID: <201105251722.p4PHMaQ20183@momjian.us> (raw)
In-Reply-To: <1306341572-sup-4765@alvh.no-ip.org>

Alvaro Herrera wrote:
> 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.

I can easily remove dashes before the compare if people like that idea
--- I think you could argue that a dash is not significant, unless "ab-c"
and "a-bc" are different locales.

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +



view thread (23+ messages)  latest in thread

Message-ID: <201105251722.p4PHMaQ20183@momjian.us>
Permalink:  ../201105251722.p4PHMaQ20183@momjian.us/
Also on:    postgresql.org/message-id/201105251722.p4PHMaQ20183@momjian.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: bruce@momjian.us, alvherre@commandprompt.com, robertmhaas@gmail.com, timuckun@gmail.com, pgsql-hackers@postgresql.org
  Subject: Re: [BUGS] BUG #6034: pg_upgrade fails when it should not.
  In-Reply-To: <201105251722.p4PHMaQ20183@momjian.us>
  References: <1306341572-sup-4765@alvh.no-ip.org> <201105251722.p4PHMaQ20183@momjian.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox