pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Bruce Momjian <bruce@momjian.us>
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, 01 Jun 2011 21:28:56 +0300
Message-ID: <1306952936.2279.2.camel@vanquo.pezone.net> (raw)
In-Reply-To: <21309.1306948863@sss.pgh.pa.us>
References: <201105241959.p4OJxxL05180@momjian.us>
	<1306942821.2279.0.camel@vanquo.pezone.net>
	<21309.1306948863@sss.pgh.pa.us>

On ons, 2011-06-01 at 13:21 -0400, Tom Lane wrote:
> Peter Eisentraut <peter_e@gmx.net> 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?).

Well, initdb still succeeds if you give it an invalid locale name.  It
warns, but that can easily be missed if initdb is hidden behind a few
other layers.  If you then run pg_upgrade, you get a hosed instance.




view thread (23+ messages)  latest in thread

Message-ID: <1306952936.2279.2.camel@vanquo.pezone.net>
Permalink:  ../1306952936.2279.2.camel@vanquo.pezone.net/
Also on:    postgresql.org/message-id/1306952936.2279.2.camel@vanquo.pezone.net

 · 

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: peter_e@gmx.net, tgl@sss.pgh.pa.us, bruce@momjian.us, 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: <1306952936.2279.2.camel@vanquo.pezone.net>
  References: <201105241959.p4OJxxL05180@momjian.us> <1306942821.2279.0.camel@vanquo.pezone.net> <21309.1306948863@sss.pgh.pa.us> <1306952936.2279.2.camel@vanquo.pezone.net>

* 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