Josh Berkus <josh(at)agliodbs(dot)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