Re: Would an index benefit select ... order by? - Mailing list pgsql-general

From A. Kretschmer
Subject Re: Would an index benefit select ... order by?
Date
Msg-id 20071103073343.GA27773@a-kretschmer.de
Whole thread Raw
In response to Would an index benefit select ... order by?  (rihad <rihad@mail.ru>)
List pgsql-general
am  Sat, dem 03.11.2007, um 11:09:05 +0400 mailte rihad folgendes:
> Hi,
>
> Should an index be used on a created_at timestamp column if you know you
> will be using "ORDER BY created_at ASC|DESC" from time to time?

Yes. And you should use EXPLAIN.


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: "Mikko Partio"
Date:
Subject: Re: Populating large DB from Perl script
Next
From: rihad
Date:
Subject: index usage in joins q'n