pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: pgsql-admin@postgresql.org
To: Reinhard Asmus <reinhard.asmus@spdfraktion.de>
Subject: Re: german sort is wrong
Date: Thu, 22 Mar 2012 10:39:53 -0500
Message-ID: <4F6B017902000025000465D0@gw.wicourts.gov> (raw)
In-Reply-To: <4F6AFDDE.1030401@spdfraktion.de>
References: <4F689E94.2090408@spdfraktion.de>
	<4F69967A02000025000464DC@gw.wicourts.gov>
	<4F6AFDDE.1030401@spdfraktion.de>

Reinhard Asmus <reinhard.asmus@spdfraktion.de> wrote:
> Am 21.03.2012 14:51, schrieb Kevin Grittner:
>> Reinhard Asmus<reinhard.asmus@spdfraktion.de>  wrote:
>>
>>> when i make a sort this is the result:
>>
>>> [vowel with umlaut sorts equal to vowel without]
>>
>>> in german this is wrong. what is the problem?
>>
>> It appears to be one of three different "right" ways:
>>
>> http://en.wikipedia.org/wiki/German_alphabet#Sorting
>>
>> Is there a different collation available on your OS to sort
>> names?
 
> when i make the same thing in oracle i've got
> 
> Ätna
> Anton
> ....
> 
> is it possible to get the same with postgresql and when how?
 
PostgreSQL doesn't implement collations itself; it can only use
collations available from your OS.  It appears that your OS is
defaulting to the dictionary collation and you would prefer the
phone book collation.  The Wikipedia link mentions that Windows
provides both collations; I suspect it's not the only OS that does,
but have no direct knowledge about that.
 
Starting in version 9.1 PostgreSQL can support collation overrides,
for example at the column level.  Provided that your OS provides
both, you could use one for your default collation and override that
for specific columns, which sounds like it might make sense for
German.
 
-Kevin



view thread (6+ messages)  latest in thread

Message-ID: <4F6B017902000025000465D0@gw.wicourts.gov>
Permalink:  ../4F6B017902000025000465D0@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4F6B017902000025000465D0@gw.wicourts.gov

 · 

reply

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-admin@postgresql.org
  Cc: Kevin.Grittner@wicourts.gov, reinhard.asmus@spdfraktion.de
  Subject: Re: german sort is wrong
  In-Reply-To: <4F6B017902000025000465D0@gw.wicourts.gov>
  References: <4F689E94.2090408@spdfraktion.de> <4F69967A02000025000464DC@gw.wicourts.gov> <4F6AFDDE.1030401@spdfraktion.de> <4F6B017902000025000465D0@gw.wicourts.gov>

* 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