Re: Efficient date range search?

From: "Shridhar Daithankar" <shridhar_daithankar(at)persistent(dot)co(dot)in>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Efficient date range search?
Date: 2002-10-08 05:49:21
Message-ID: 3DA2BF39.29493.13D4370C@localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 7 Oct 2002 at 13:32, Jean-Luc Lachance wrote:

> > select * from pets where died > [date] or died is null;
> Then you're back to whole table scan... :(

Well, if there is an index on died, it's rather an indexed scan as opposed to a
sequential scan as you are mentioning(hopefully).

Indexed scan are usually pretty quick if you select small amount of data from
entire table set. e.g. 10 pets from a million tuples..

Bye
Shridhar

--
character density, n.: The number of very weird people in the office.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Savita 2002-10-08 05:51:35 How to find out about index
Previous Message Shridhar Daithankar 2002-10-08 05:47:18 Re: [HACKERS] Hot Backup