Re: problem with ORDER BY

Поиск
Список
Период
Сортировка
От Nicolas KOWALSKI
Тема Re: problem with ORDER BY
Дата
Msg-id 87wspl3q70.fsf@petole.dyndns.org
обсуждение исходный текст
Ответ на Re: problem with ORDER BY  ("Vyacheslav Kalinin" <vka@mgcp.com>)
Список pgsql-general
"Vyacheslav Kalinin" <vka@mgcp.com> writes:

> I am guessing that collation rules are not applied to bytea columns, so one
> can compare text according to C locale anyway if he populates bytea column
> or just does something like
>
> select * from url order by byteain(textout(url))

Thanks for your suggestion; it works well :-)

mon=> select * from url order by byteain(textout(url)) ;
              url
-------------------------------
 http://imag.fr/
 http://www.google.com/
 http://www.google.com/reader/
 http://www.google.fr/
 http://www.postgresql.org/
 https://gmail.com/
 https://mail.google.com/mail/
 https://www.sixxs.net/
(8 rows)


Best regards,
--
Nicolas

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

Предыдущее
От: Jorge Godoy
Дата:
Сообщение: Re: PGSQL ERROR: FATAL: terminating connection due to administrator command
Следующее
От: "Scott Marlowe"
Дата:
Сообщение: Re: [OT] "advanced" database design (long)