After a long battle with technology, [EMAIL PROTECTED] (Antony Paul), an earthling, 
> Hi all,
>    I have a table which have more than 200000 records. I need to get
> the records which matches like this
> where today::date = '2004-11-05';
> This is the only condition in the query. There is a btree index on the
> column today.
> Is there any way to optimise it.

How about changing the criterion to:

  where today between '2004-11-05' and '2004-11-06';

That ought to make use of the index on "today".
"People need to quit pretending they can invent THE interface and walk
away from it, like some Deist fantasy." -- Michael Peck

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Reply via email to