Re: Timestamps and performances problems

Поиск
Список
Период
Сортировка
От Dan Langille
Тема Re: Timestamps and performances problems
Дата
Msg-id 20020410130743.C869D3F30@bast.unixathome.org
обсуждение исходный текст
Ответ на Re: Timestamps and performances problems  ("Gaetano Mendola" <mendola@bigfoot.com>)
Список 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 по дате отправления:

Предыдущее
От: Raphael Bauduin
Дата:
Сообщение: performance "tests"
Следующее
От: Jean-Christophe ARNU (JX)
Дата:
Сообщение: Re: Timestamps and performances problems