From: Harmon S. Nine <hnine@netarx.com>
To: Stephan Szabo <sszabo@megazone.bigpanda.com>
To: pgsql-performance@postgresql.org
Subject: Re: Timestamp-based indexing
Date: Mon, 26 Jul 2004 14:37:48 -0400
Message-ID: <41054F7C.3020108@netarx.com> (raw)
In-Reply-To: <20040726085324.E68237@megazone.bigpanda.com>
References: <410519F6.5020806@netarx.com>
<20040726085324.E68237@megazone.bigpanda.com>
THAT WAS IT!!
Thank you very much.
Is there a way to change the type of "CURRENT_TIMESTAMP" to "timestamp
without time zone" so that casting isn't needed?
BTW, isn't this a bug?
-- Harmon
Stephan Szabo wrote:
>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: hnine@netarx.com, sszabo@megazone.bigpanda.com
Subject: Re: Timestamp-based indexing
In-Reply-To: <41054F7C.3020108@netarx.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