Re: Index not being used - Mailing list pgsql-sql

From Tom Lane
Subject Re: Index not being used
Date
Msg-id 10780.1013733998@sss.pgh.pa.us
Whole thread Raw
In response to Re: Index not being used  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Responses Re: Index not being used  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
List pgsql-sql
Stephan Szabo <sszabo@megazone23.bigpanda.com> writes:
> Something tells me that current_date is probably not in a form that's
> considered indexable.

More to the point, it's not considered a constant.

You could writeWHERE cdate = date 'now'
instead.
        regards, tom lane


pgsql-sql by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Index not being used
Next
From: "Christopher Kings-Lynne"
Date:
Subject: Re: trigger on table