From: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
To: depesz@depesz.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: Cannot create collation?
Date: Wed, 02 Mar 2011 18:00:45 +0200
Message-ID: <4D6E69AD.7080103@enterprisedb.com> (raw)
In-Reply-To: <20110302125802.GA2003@depesz.com>
References: <20110302125802.GA2003@depesz.com>
On 02.03.2011 14:58, hubert depesz lubaczewski wrote:
> When I try to create french collation, it seems to work, but fails soon:
>
> $ CREATE COLLATION french (LOCALE = 'fr_FR.UTF-8');
> CREATE COLLATION
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(). Or would that just make it more difficult to restore
a database with invalid collations?
> $ select * from test3 order by x;
> ERROR: could not create locale "fr_FR.UTF-8": Success
Looks like newlocale() call returned 0, but didn't set errno. I don't
think that's supposed to happen. Which platform is this? Which operating
system and version?
--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com
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: heikki.linnakangas@enterprisedb.com, depesz@depesz.com
Subject: Re: Cannot create collation?
In-Reply-To: <4D6E69AD.7080103@enterprisedb.com>
References: <20110302125802.GA2003@depesz.com> <4D6E69AD.7080103@enterprisedb.com>
* 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