From: | Gregory Stark <stark(at)enterprisedb(dot)com> |
---|---|
To: | Poul Møller Hansen <freebsd(at)pbnet(dot)dk> |
Cc: | "pgsql general" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Different sort order |
Date: | 2007-05-28 18:21:44 |
Message-ID: | 87d50kkdvr.fsf@oxford.xeocode.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Poul Møller Hansen <freebsd(at)pbnet(dot)dk> writes:
> I'm wondering why the sort order on these two servers behaves differently.
> The only difference I can see is that one is using a 32.bits Ubuntu and the
> other is on 64bits versions of Ubuntu.
> But why this difference ?
Try on both servers:
show lc_collate
Unfortunately you have to initdb to set the locale. You can't set it per
database or change it once it's initialized.
This one looks like en_US or something similar:
> mydb=# select * from test order by felt1;
> felt1 --------
> test1
> test_1
> test2
> test_2
> test3
> test_3
> (6 rows)
>
And this one looks like C:
> mydb=# select * from test order by felt1;
> felt1 --------
> test1
> test2
> test3
> test_1
> test_2
> test_3
> (6 rows)
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
From | Date | Subject | |
---|---|---|---|
Next Message | Poul Møller Hansen | 2007-05-28 18:39:13 | Re: Different sort order |
Previous Message | Michael Fuhr | 2007-05-28 18:20:52 | Re: Different sort order |