From: | Glyn Astill <glynastill(at)yahoo(dot)co(dot)uk> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Index order |
Date: | 2008-09-16 13:34:30 |
Message-ID: | 588416.57488.qm@web25803.mail.ukl.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
>
> > I have a table with a varchar field "artist"
> (see table def below),
> and if I order by the field "artist" it does not
> order as expected when
> there are characters such as ^ at the start of the text.
>
> You didn't say what you consider "expected",
> but I suspect that the
> answer is you want to use a different locale setting ...
> probably C.
> Unfortunately there's currently no way to change that
> short of initdb.
>
Sorry. I expected the index to order A-Z with anything starting with the carret (or other characters) being either at the end or at the start, not in the middle. I know it's naive, but for some reason I expected the index would order any text in alphabetical order e.g. AA,AB,AC,ZA,ZZ,^A,^Z ...etc
I guess if the only soloution is initdb and a different locale, I'll have to find a workaround elsewhere. The client applications that rely on this are a pile of junk anyway.
From | Date | Subject | |
---|---|---|---|
Next Message | Gregory Stark | 2008-09-16 13:35:25 | Re: Index order |
Previous Message | Merlin Moncure | 2008-09-16 13:31:24 | Re: Obfuscated stored procedures (was Re: Oracle and Postgresql) |