From: Hannu Krosing <hannu@tm.ee>
To: Luis Alberto Amigo Navarro <lamigo@atc.unican.es>
Cc: pgsql-hackers@postgresql.org
Subject: Re: please help on query
Date: 11 Jul 2002 22:51:04 +0200
Message-ID: <1026420664.18193.21.camel@taru.tm.ee> (raw)
In-Reply-To: <005e01c228ee$bd1913e0$cab990c1@atc.unican.es>
References: <005e01c228ee$bd1913e0$cab990c1@atc.unican.es>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: hannu@tm.ee, lamigo@atc.unican.es, pgsql-hackers@postgresql.org
Subject: Re: please help on query
In-Reply-To: <1026420664.18193.21.camel@taru.tm.ee>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox