Re: Help on indexing timestamps

From: Andre Schubert <andre(at)km3(dot)de>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: achill(at)matrix(dot)gatewaynet(dot)com, pgsql-sql(at)postgresql(dot)org
Subject: Re: Help on indexing timestamps
Date: 2003-03-10 09:17:50
Message-ID: 20030310101750.77a1ae2f.andre@km3.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Fri, 07 Mar 2003 10:05:03 -0500
Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> Andre Schubert <andre(at)km3(dot)de> writes:
> > Yes if i use BETWEEN and type in the dates by hand the query takes about 200ms with explain analyze.
> > I think these is a good performance.
> > But if i use now() instead of manually typed dates the query take about 1400ms :(
> > I thought the somebody posted to this list, that now() is a function that is not cached,
> > and thatswhy does not work pretty well with indexes.
>
> Update to 7.3, and that problem will go away.
>
What is the difference between 7.2 and 7.3 related to my problem ?

Thanks, as

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Hiroshi Inoue 2003-03-10 09:20:33 Re: Cursors and backwards scans and SCROLL
Previous Message Tomasz Myrta 2003-03-10 09:12:15 Re: Help on indexing timestamps