From: Oliver Elphick <olly@lfix.co.uk>
To: Niclas Gustafsson <niclas.gustafsson@codesense.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: to --enable-locale or not to --enable-locale?
Date: 25 Mar 2002 11:25:48 +0000
Message-ID: <1017055549.1334.151.camel@linda> (raw)
In-Reply-To: <001a01c1d3ee$42345e50$b700a8c0@gmg>
References: <001a01c1d3ee$42345e50$b700a8c0@gmg>
On Mon, 2002-03-25 at 11:14, Niclas Gustafsson wrote:
> Hi, I'm having trouble sorting my data.
>
> I'm using PostgresQL 7.2 compiled with:
> --enable-multibyte=LATIN1 --enable-locale
...
> Then I've inserted some test values which seem to be sorted wrongfully
> when I issue an
> select * from sorttest order by data
...
> I want it sorted in abcd..zåäö
> What am I missing here? Any Ideas?
1. Does the locale you are using sort as you want?
2. Did you initdb with that locale set? (Use pg_controldata from
contrib to see what locale the backend is using.) locale must be set
correctly for initdb, to ensure that indexes don't get broken by changes
of locale.
--
Oliver Elphick Oliver.Elphick@lfix.co.uk
Isle of Wight http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
"Why are you downcast, O my soul? Why so disturbed
within me? Put your hope in God, for I will yet praise
Him, my Saviour and my God." Psalm 42:11
Attachments:
signature.asc (application/pgp-signature, 231B) download
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: olly@lfix.co.uk, niclas.gustafsson@codesense.com
Subject: Re: to --enable-locale or not to --enable-locale?
In-Reply-To: <1017055549.1334.151.camel@linda>
References: <001a01c1d3ee$42345e50$b700a8c0@gmg> <1017055549.1334.151.camel@linda>
* 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