Re: Interesting question - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Interesting question
Date
Msg-id 28448.990243538@sss.pgh.pa.us
Whole thread Raw
In response to Re: Interesting question  (Larry Rosenman <ler@lerctr.org>)
Responses Re: Interesting question  (Larry Rosenman <ler@lerctr.org>)
List pgsql-hackers
Larry Rosenman <ler@lerctr.org> writes:
> CREATE FUNCTION "nowminus" (interval) RETURNS timestamp with time zone AS 'SELECT now() - $1;' LANGUAGE 'sql';

Right idea, but you need to mark it iscachable.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Plans for solving the VACUUM problem
Next
From: Alex Pilosov
Date:
Subject: force of last XID