Re: Index on timestamp field, and now() - Mailing list pgsql-general

From Tom Lane
Subject Re: Index on timestamp field, and now()
Date
Msg-id 22586.1013537294@sss.pgh.pa.us
Whole thread Raw
In response to Re: Index on timestamp field, and now()  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-general
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Tom Lane wrote:
>> Correct, it's the now() function that's not cachable --- but you can get
>> around that with the "timestamp 'now'" kluge.

> Isn't CURRENT_TIMESTAMP the preferred method for this?

Doesn't make any difference as far as this point is concerned.
CURRENT_TIMESTAMP isn't cachable either.

            regards, tom lane

pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Index on timestamp field, and now()
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] Feature enhancement request : use of libgda in