From: | Oliver Elphick <olly(at)lfix(dot)co(dot)uk> |
---|---|
To: | Niclas Gustafsson <niclas(dot)gustafsson(at)codesense(dot)com> |
Cc: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: to --enable-locale or not to --enable-locale? |
Date: | 2002-03-25 11:25:48 |
Message-ID: | 1017055549.1334.151.camel@linda |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
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(dot)Elphick(at)lfix(dot)co(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Niclas Gustafsson | 2002-03-25 11:47:25 | Re: to --enable-locale or not to --enable-locale? |
Previous Message | Niclas Gustafsson | 2002-03-25 11:14:38 | Re: to --enable-locale or not to --enable-locale? |