From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: Josh Berkus <josh@agliodbs.com>
Cc: Matthew Price <pricem@juno.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Index not being used
Date: Thu, 14 Feb 2002 15:08:45 -0800 (PST)
Message-ID: <20020214150423.R24897-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <web-694398@davinci.ethosmedia.com>
On Thu, 14 Feb 2002, Josh Berkus wrote:
> Matthew,
>
> 1. Is field cdate DATE or TIMESTAMP?
> 2. What happens with:
> EXPLAIN SELECT cdate FROM sometable WHERE cdate = '2001-02-14'::DATE or
> TIMESTAMP?
> 3. Please time both queries and give the number of resulting rows from
> both queries.
Something tells me that current_date is probably not in a form that's
considered indexable. You could probably get around that with an
iscachable function hiding it however.
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: sszabo@megazone23.bigpanda.com, josh@agliodbs.com, pricem@juno.com
Subject: Re: Index not being used
In-Reply-To: <20020214150423.R24897-100000@megazone23.bigpanda.com>
* 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