From: Peter Eisentraut <peter_e@gmx.net>
To: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Cc: depesz@depesz.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: Cannot create collation?
Date: Wed, 02 Mar 2011 21:59:43 +0200
Message-ID: <1299095983.21461.11.camel@vanquo.pezone.net> (raw)
In-Reply-To: <4D6E69AD.7080103@enterprisedb.com>
References: <20110302125802.GA2003@depesz.com>
<4D6E69AD.7080103@enterprisedb.com>
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.
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, heikki.linnakangas@enterprisedb.com, depesz@depesz.com
Subject: Re: Cannot create collation?
In-Reply-To: <1299095983.21461.11.camel@vanquo.pezone.net>
References: <20110302125802.GA2003@depesz.com> <4D6E69AD.7080103@enterprisedb.com> <1299095983.21461.11.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