Re: problem with ORDER BY - Mailing list pgsql-general

From Nicolas KOWALSKI
Subject Re: problem with ORDER BY
Date
Msg-id 87wspl3q70.fsf@petole.dyndns.org
Whole thread Raw
In response to Re: problem with ORDER BY  ("Vyacheslav Kalinin" <vka@mgcp.com>)
List 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 by date:

Previous
From: Jorge Godoy
Date:
Subject: Re: PGSQL ERROR: FATAL: terminating connection due to administrator command
Next
From: "Scott Marlowe"
Date:
Subject: Re: [OT] "advanced" database design (long)