Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id D76DF1337B82 for ; Sat, 7 May 2011 13:49:14 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 67480-01 for ; Sat, 7 May 2011 16:48:56 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id A99541337B67 for ; Sat, 7 May 2011 13:48:55 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p47Gmq7a008893; Sat, 7 May 2011 12:48:52 -0400 (EDT) To: Thomas Kellerer cc: pgsql-sql@postgresql.org Subject: Re: Specifying column level collations In-reply-to: References: Comments: In-reply-to Thomas Kellerer message dated "Sat, 07 May 2011 13:19:10 +0200" Date: Sat, 07 May 2011 12:48:52 -0400 Message-ID: <8892.1304786932@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201105/43 X-Sequence-Number: 35327 Thomas Kellerer 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'); I don't know how to find out exactly what locale names are recognized by Windows, so can't help you much further than that. regards, tom lane