From: | Hannu Krosing <hannu(at)tm(dot)ee> |
---|---|
To: | Luis Alberto Amigo Navarro <lamigo(at)atc(dot)unican(dot)es> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: please help on query |
Date: | 2002-07-11 20:51:04 |
Message-ID: | 1026420664.18193.21.camel@taru.tm.ee |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-sql |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Hannu Krosing | 2002-07-11 21:08:15 | Re: please help on query |
Previous Message | Iavor Raytchev | 2002-07-11 20:50:53 | Re: bugzilla.pgaccess.org |
From | Date | Subject | |
---|---|---|---|
Next Message | Hannu Krosing | 2002-07-11 21:08:15 | Re: please help on query |
Previous Message | Hannu Krosing | 2002-07-11 20:48:08 | Re: please help on query |