From: Dan Langille <dan@langille.org>
To: Gaetano Mendola <mendola@bigfoot.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Timestamps and performances problems
Date: Wed, 10 Apr 2002 09:06:55 -0400
Message-ID: <20020410130743.C869D3F30@bast.unixathome.org> (raw)
In-Reply-To: <004101c1e075$49103940$5ce8fea9@GMENDOLA2>
On 10 Apr 2002 at 11:51, Gaetano Mendola wrote:
> "Jean-Christophe ARNU (JX)" <jc.arnu@free.fr> wrote:
> > Hello all.
> > I've a performance problem on specific requests :
> >
> > When I use timestamps + interval in where clauses, query performance is
> > slowed down by a factor of 20 or 30!!!! For exemple :
> > select timestamp,value
> > from measure
> > where timestamp<now() and timestamp>(now() - '1 hour'::interval)
Try where timestamp<now() and timestamp>(now() - '1
hour'::interval)::timestemp.
--
Dan Langille
The FreeBSD Diary - http://freebsddiary.org/ - practical examples
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: dan@langille.org, mendola@bigfoot.com
Subject: Re: Timestamps and performances problems
In-Reply-To: <20020410130743.C869D3F30@bast.unixathome.org>
References: <004101c1e075$49103940$5ce8fea9@GMENDOLA2> <20020410130743.C869D3F30@bast.unixathome.org>
* 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