Re: overriding current_timestamp - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: overriding current_timestamp
Date
Msg-id 1330371785.7111.30.camel@vanquo.pezone.net
Whole thread Raw
In response to Re: overriding current_timestamp  ("David E. Wheeler" <david@justatheory.com>)
Responses Re: overriding current_timestamp  ("David E. Wheeler" <david@justatheory.com>)
List pgsql-hackers
On mån, 2012-02-27 at 11:40 -0800, David E. Wheeler wrote:
> On Feb 27, 2012, at 11:39 AM, Peter Eisentraut wrote:
> 
> >> I use it for NOW() all the time.
> > 
> > But it won't work for current_timestamp.
> 
> Why not? Not challenging your assertion here, just curious why it’s different.

Because it's not actually a function, it's hardcoded in the grammar to
call pg_catalog.now().



pgsql-hackers by date:

Previous
From: "David E. Wheeler"
Date:
Subject: Re: overriding current_timestamp
Next
From: "David E. Wheeler"
Date:
Subject: Re: overriding current_timestamp