Re: Specifying column level collations - Mailing list pgsql-sql

From Thomas Kellerer
Subject Re: Specifying column level collations
Date
Msg-id iq493a$5ds$1@dough.gmane.org
Whole thread Raw
In response to Re: Specifying column level collations  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
Tom Lane wrote on 07.05.2011 18:48:
> Thomas Kellerer<spam_eater@gmx.net>  writes:
>> My database is initialized as follows:
>
>> postgres=# select version();
>>                               version
>> ----------------------------------------------------------------
>>    PostgreSQL 9.1beta1, compiled by Visual C++ build 1500, 32-bit
>> (1 row)
>
> I gather this is on Windows.
>
> Windows has its own notion of locale names, which look like this:
>
>>    lc_collate      | German_Germany.1252
>
> rather than the "de_DE" type of convention that's used by every other
> platform on the planet.  There is not yet support in initdb for
> pre-populating pg_collation with Windows-style entries, so you will
> have to create your own entries.  Presumably this would work for you,
> for instance:
>
> CREATE COLLATION german (locale='German_Germany.1252');
>

Ah! That did it. Thanks a lot.

Regards
Thomas



pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: Specifying column level collations
Next
From: Seb
Date:
Subject: Re: slightly OT - Using psql from Emacs with sql.el