Re: Ordering problem with varchar (DESC) - Mailing list pgsql-general

From A. Kretschmer
Subject Re: Ordering problem with varchar (DESC)
Date
Msg-id 20070131173236.GA30149@a-kretschmer.de
Whole thread Raw
In response to Ordering problem with varchar (DESC)  (Alexandre Leclerc <aleclerc@ipso.ca>)
List pgsql-general
am  Wed, dem 31.01.2007, um 10:46:17 -0500 mailte Alexandre Leclerc folgendes:
> Hi all,
>
> We have a column (varchar) that has plain text time and it is indexed.
>
> How can I fix that so that the result is exactly like the first one but
> perfectly reversed in it's order?

Use the right data-typ for your data, in this case TIMESTAMP. Then you
can order this data likewise reverse and get a performance boost by the
way...

Andreas
--
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   http://wwwkeys.de.pgp.net

pgsql-general by date:

Previous
From: Alexandre Leclerc
Date:
Subject: Ordering problem with varchar (DESC)
Next
From: "Daniel Verite"
Date:
Subject: Re: Ordering problem with varchar (DESC)