Re: Timestamps and performances problems - Mailing list pgsql-admin

From Dan Langille
Subject Re: Timestamps and performances problems
Date
Msg-id 20020410130743.C869D3F30@bast.unixathome.org
Whole thread Raw
In response to Re: Timestamps and performances problems  ("Gaetano Mendola" <mendola@bigfoot.com>)
List pgsql-admin
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


pgsql-admin by date:

Previous
From: Raphael Bauduin
Date:
Subject: performance "tests"
Next
From: Jean-Christophe ARNU (JX)
Date:
Subject: Re: Timestamps and performances problems