Re: ORDER BY is case insensitive

Поиск
Список
Период
Сортировка
От silly sad
Тема Re: ORDER BY is case insensitive
Дата
Msg-id 4C22E3F3.6040506@bankir.ru
обсуждение исходный текст
Ответ на Re: ORDER BY is case insensitive  (Jasen Betts <jasen@xnet.co.nz>)
Список pgsql-sql
On 06/23/10 17:45, Jasen Betts wrote:
> On 2010-06-22, Bryan White<nicktook@gmail.com>  wrote:
>> I was suprised to find out that ORDER BY is case insensitive.  Is
>> there a way to do a case sensitive ORDER BY clause?
>
> use bytea instead of a text type.
>
>   try this:
>
>   select * from t order by replace(f,e'\\', e'\\\\')::bytea
>
> you may want to index on  replace(f,e'\\', e'\\\\')::bytea

certainly wrong way.
keyword is "multibyte chars".

as he asked about case sensitivity, i presume he still want to preserve 
alphabet order -- u propose to cancel alphabet order at all.


В списке pgsql-sql по дате отправления:

Предыдущее
От: Jasen Betts
Дата:
Сообщение: Re: ORDER BY is case insensitive
Следующее
От: Joshua Gooding
Дата:
Сообщение: question about partitioning