From: Erwin Brandstetter <brandstetter@falter.at>
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us
Subject: Re: database locale and system locale
Date: Mon, 27 Mar 2006 10:56:47 +0200
Message-ID: <4427A8CF.5070605@falter.at> (raw)
In-Reply-To: <26548.1143390039@sss.pgh.pa.us>
References: <442624FF.6000604@falter.at>
<200603261024.00755.peter_e@gmx.net>
<44265C08.8040301@falter.at>
<26548.1143390039@sss.pgh.pa.us>
tgl@sss.pgh.pa.us wrote:
> Erwin Brandstetter <brandstetter@falter.at> writes:
>
>> Wait .. not that great! The system locale is more or less ignored, but
>> my sort order will approach randomness?
>>
>
> Peter's point is that a given locale setting will expect a particular
> encoding, and if you try to use a different encoding then your sort
> ordering will be wrong. Not "random" exactly, but not what you want.
Sorry, maybe I am slow in the head. Are you referring to the system
locale of the client OS?
My question was aiming at the database server OS. (Maybe I have not been
clear enough myself.)
Example:
~~~~~~~
Postgresql --encoding=UTF8 --locale='de_AT.UTF-8@euro'
Server OS: (Debian Sarge) set system locale 'C' (locale
'de_AT.UTF-8@euro' is installed, too)
PHP5, Apache.
Client: Browser (Mozilla Firefox in our case) on various OS´s (Mac, Win,
Linux), set to work with UNICODE data.
Would the system locale of the _server_ OS mess with the sort order? (Or
with anything at all?)
Any sorting done on the client would be based on the _client_ OS system
locale, but that is a different question ..
Regards
Erwin Brandstetter
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: brandstetter@falter.at, tgl@sss.pgh.pa.us
Subject: Re: database locale and system locale
In-Reply-To: <4427A8CF.5070605@falter.at>
References: <442624FF.6000604@falter.at> <200603261024.00755.peter_e@gmx.net> <44265C08.8040301@falter.at> <26548.1143390039@sss.pgh.pa.us> <4427A8CF.5070605@falter.at>
* 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