Re: overriding current_timestamp - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: overriding current_timestamp
Date
Msg-id 1330371567.7111.28.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 08:48 -0800, David E. Wheeler wrote:
> On Feb 27, 2012, at 4:29 AM, Peter Eisentraut wrote:
> 
> >> I create a "mock" schema, add the function to it, and then put it in the search_path ahead of pg_catalog.
> > 
> > That doesn't work for current_timestamp and similar built-in functions,
> > because they are always mapped to the pg_catalog schema.
> 
> I use it for NOW() all the time.

But it won't work for current_timestamp.



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Command Triggers, patch v11
Next
From: "David E. Wheeler"
Date:
Subject: Re: overriding current_timestamp