Re: illegal sort order - Mailing list pgsql-general

From Tom Lane
Subject Re: illegal sort order
Date
Msg-id 22406.1121200804@sss.pgh.pa.us
Whole thread Raw
In response to Re: illegal sort order  (Bruno Wolff III <bruno@wolff.to>)
List pgsql-general
Bruno Wolff III <bruno@wolff.to> writes:
>   Andrus <eetasoft@online.ee> wrote:
>> SHOW ALL command returns the following:
>>
>> "client_encoding";"UNICODE"
>> "lc_collate";"Estonian_Estonia.1257"
>> "lc_ctype";"Estonian_Estonia.1257"
>> "lc_messages";"Estonian_Estonia.1257"
>> "lc_monetary";"Estonian_Estonia.1257"
>> "lc_numeric";"Estonian_Estonia.1257"
>> "lc_time";"Estonian_Estonia.1257"

> Are you running this on Windows? There is a problem with Unicode there.

Windows or not, the locale name suggests *very* strongly that it is not
a Unicode-using locale.  If the database encoding doesn't match what the
locale is expecting then strange sort order is exactly what you are
likely to get.

We should defend against these sorts of configuration problems more
thoroughly, but it seems to be hard in general to determine what
character set a locale is actually using :-(

            regards, tom lane

pgsql-general by date:

Previous
From: Mark Rae
Date:
Subject: Re: [PERFORM] Projecting currentdb to more users
Next
From: "Marc G. Fournier"
Date:
Subject: Re: gborg borked again?