From: | Nicolas KOWALSKI <niko(at)petole(dot)dyndns(dot)org> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: problem with ORDER BY |
Date: | 2008-02-04 11:40:19 |
Message-ID: | 87wspl3q70.fsf@petole.dyndns.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
"Vyacheslav Kalinin" <vka(at)mgcp(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Scott Marlowe | 2008-02-04 12:09:44 | Re: [OT] "advanced" database design (long) |
Previous Message | Jorge Godoy | 2008-02-04 11:01:08 | Re: PGSQL ERROR: FATAL: terminating connection due to administrator command |