From: | Richard Neill <rn214(at)hermes(dot)cam(dot)ac(dot)uk> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | rn214(at)cam(dot)ac(dot)uk, PostgreSQL Bugs List <pgsql-bugs(at)postgresql(dot)org> |
Subject: | Re: BUG #1082: Order by doesn't sort correctly. |
Date: | 2004-02-21 23:17:33 |
Message-ID: | 4037E70D.6020106@hermes.cam.ac.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Tom Lane wrote:
> "PostgreSQL Bugs List" <pgsql-bugs(at)postgresql(dot)org> writes:
>
>>Description: Order by doesn't sort correctly.
>
>
> It almost certainly is the correct sort order according to the locale
> you're using. Use pg_controldata to check the database locale. You'll
> probably want to re-initdb in C locale. Most non-C locales have weird
> rules that try to approximate dictionary sort order.
>
> regards, tom lane
>
Dear Tom,
Thanks for your email. I did check pg_controldata and found:
LC_COLLATE: en_GB
LC_CTYPE: en_GB
The bug isn't the particular ascii-betical (or other) order.
But what I am getting as a supposedly ordered list includes:
Cymbal #1
Cymbal - 18 inch
Cymbal #2
This ordering is perverse! No matter what the priority is of the
different characters, I cannot understand how the above can arise.
Whether '#' comes before or after '-', '#1' and '#2' should be adjacent.
Richard
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2004-02-21 23:25:34 | Re: BUG #1082: Order by doesn't sort correctly. |
Previous Message | Tom Lane | 2004-02-21 22:47:47 | Re: BUG #1082: Order by doesn't sort correctly. |