Re: Ordering problem with varchar (DESC)

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Ordering problem with varchar (DESC)
Date: 2007-01-31 17:32:36
Message-ID: 20070131173236.GA30149@a-kretschmer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Erik Jones 2007-01-31 18:06:21 Re: Ordering problem with varchar (DESC)
Previous Message Jorge Godoy 2007-01-31 17:18:31 Re: Any Plans for cross database queries on the same server?