Re: pl/pgsql and returns timestamp type

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: josh(at)agliodbs(dot)com
Cc: Terry Yapt <yapt(at)technovell(dot)com>, pgsql-novice(at)postgresql(dot)org
Subject: Re: pl/pgsql and returns timestamp type
Date: 2002-09-10 19:27:29
Message-ID: 21392.1031686049@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

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

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Roland Roberts 2002-09-10 20:40:44 Unique indices and nulls
Previous Message Josh Berkus 2002-09-10 18:12:59 Re: pl/pgsql and returns timestamp type