From: Stephan Szabo <sszabo@megazone.bigpanda.com>
To: Harmon S. Nine <hnine@netarx.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Timestamp-based indexing
Date: Mon, 26 Jul 2004 09:02:03 -0700 (PDT)
Message-ID: <20040726085324.E68237@megazone.bigpanda.com> (raw)
In-Reply-To: <410519F6.5020806@netarx.com>
References: <410519F6.5020806@netarx.com>
On Mon, 26 Jul 2004, Harmon S. Nine wrote:
> However, we can't get the planner to do an timestamp-based index scan.
>
> Anyone know what to do?
I'd wonder if the type conversion is causing you problems.
CURRENT_TIMESTAMP - INTERVAL '10 minutes' is a timestamp with time zone
while the column is timestamp without time zone. Casting
CURRENT_TIMESTAMP to timestamp without time zone seemed to make it able to
choose an index scan on 7.4.
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-performance@postgresql.org
Cc: sszabo@megazone.bigpanda.com, hnine@netarx.com
Subject: Re: Timestamp-based indexing
In-Reply-To: <20040726085324.E68237@megazone.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