Re: please help on query - Mailing list pgsql-hackers

From Hannu Krosing
Subject Re: please help on query
Date
Msg-id 1026420664.18193.21.camel@taru.tm.ee
Whole thread Raw
In response to please help on query  ("Luis Alberto Amigo Navarro" <lamigo@atc.unican.es>)
List pgsql-hackers
On Thu, 2002-07-11 at 17:22, Luis Alberto Amigo Navarro wrote:
> I can't improve performance on this query:

You may also want to rewrite

lineitem.shipdate<(('1994-01-01')::DATE+('1 year')::INTERVAL)::DATE

into

lineitem.shipdate<(('1995-01-01')::DATE

if you can, as probably the optimiser will not recognize it else as a
constant and won't use index on lineitem.shipdate.

----------------
Hannu




pgsql-hackers by date:

Previous
From: Hannu Krosing
Date:
Subject: Re: please help on query
Next
From: Hannu Krosing
Date:
Subject: Re: please help on query