Re: pl/pgsql and returns timestamp type - Mailing list pgsql-novice

From Tom Lane
Subject Re: pl/pgsql and returns timestamp type
Date
Msg-id 21392.1031686049@sss.pgh.pa.us
Whole thread Raw
In response to Re: pl/pgsql and returns timestamp type  (Josh Berkus <josh@agliodbs.com>)
List pgsql-novice
Josh Berkus <josh@agliodbs.com> writes:
>> But then... How could I obtain "variable global values" (like the timestamp
>> for example) in different function locations whit its "at time" values ???

> Not that I know of.   I'd suggest, instead, that you call the second now()
> statement after the function completes.

There is a function that gives true realtime, rather than transaction
start time as now() does.  I think it's called timeofday(), but check
the manual.

            regards, tom lane

pgsql-novice by date:

Previous
From: Josh Berkus
Date:
Subject: Re: pl/pgsql and returns timestamp type
Next
From: Terry Yapt
Date:
Subject: Re: pl/pgsql and returns timestamp type