pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: 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: Mon, 23 May 2011 08:26:27 -0400 (EDT)
Message-ID: <201105231226.p4NCQRa03476@momjian.us> (raw)
In-Reply-To: <BANLkTinZeL6saeRw6TNrEyGOw89R7b0Csw@mail.gmail.com>

Robert Haas wrote:
> On Sun, May 22, 2011 at 9:39 PM, Bruce Momjian <bruce@momjian.us> wrote:
> > Tim Uckun wrote:
> >> pg_upgrade from 8.4 to 9.0 fails with the following error message.
> >>
> >> old and new cluster lc_collate values do not match
> >>
> >>
> >> on 8.4 show lc_collate outputs
> >> ------------
> >> ?en_NZ.utf8
> >> (1 row)
> >>
> >>
> >> on 9.0 it outputs
> >> ------------
> >> ?en_NZ.UTF8
> >> (1 row)
> >>
> >>
> >> So the difference seems to be in capitalization. Presumably they are the
> >> same collation with "different" names so it strikes me as odd that
> >> pg_upgrade would balk and refuse to upgrade the database.
> >>
> >> pg_upgrade should be able to tell that these are the same collations and go
> >> ahead with the upgrade.
> >>
> >> It also should give some indication of how to overcome the problem.
> >
> > [ Moved to hackers list.]
> >
> > Interesting. ?It can be easily fixed in the C code. ?Does anyone know of
> > an example where the case of the locale name is significant in
> > controlling the behavior?
> 
> Uh, are we talking about locale, or collation?
> 
> Because if it's collation, that seems certain to affect index contents.

Sorry, I was unclear.  The question is whether the case of _name_ of the
locale is significant, meaning can you have two locale names that differ
only by case and behave differently?

-- 
  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: <201105231226.p4NCQRa03476@momjian.us>
Permalink:  ../201105231226.p4NCQRa03476@momjian.us/
Also on:    postgresql.org/message-id/201105231226.p4NCQRa03476@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, 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: <201105231226.p4NCQRa03476@momjian.us>
  References: <BANLkTinZeL6saeRw6TNrEyGOw89R7b0Csw@mail.gmail.com> <201105231226.p4NCQRa03476@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