Re: now() in loop statement - Mailing list pgsql-sql

From Dan Langille
Subject Re: now() in loop statement
Date
Msg-id 3F77F8A8.10229.33B6CEFF@localhost
Whole thread Raw
In response to now() in loop statement  (Kerv <keresztes_m@yahoo.com>)
List pgsql-sql
On 29 Sep 2003 at 15:58, Kerv wrote:

> What is wrong with this function because the mytime variable contain the 
> same value in each iteration:

From http://www.postgresql.org/docs/7.3/static/functions-
datetime.html:

It is important to realize that CURRENT_TIMESTAMP and related 
functions return the start time of the current transaction; their 
values do not change during the transaction. timeofday() returns the 
wall clock time and does advance during transactions. 
-- 
Dan Langille : http://www.langille.org/



pgsql-sql by date:

Previous
From: Christoph Haller
Date:
Subject: Re: now() in loop statement
Next
From: Jean-Luc Lachance
Date:
Subject: Re: