Re: Cannot create collation?

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
Cc: depesz(at)depesz(dot)com, pgsql-bugs(at)postgresql(dot)org
Subject: Re: Cannot create collation?
Date: 2011-03-02 19:59:43
Message-ID: 1299095983.21461.11.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On ons, 2011-03-02 at 18:00 +0200, Heikki Linnakangas wrote:
> Hmm, regardless of what's causing this, I wonder if we should check
> that the locale works at CREATE COLLATION time, rather than fail when
> you try to use it. Ie. add a call to pg_newlocale_from_collation() at
> the end of DefineCollation().

Yeah, I was apparently hoping that check_encoding_locale_matches() would
catch invalid locales, but it doesn't, so we should put in an explicit
check.

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Andrew Considine 2011-03-02 20:06:10 BUG #5907: ODBC % bug
Previous Message hubert depesz lubaczewski 2011-03-02 16:03:56 Re: Cannot create collation?