pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dan Langille <dan@langille.org>
To: Kerv <keresztes_m@yahoo.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: now() in loop statement
Date: Mon, 29 Sep 2003 09:17:28 -0400
Message-ID: <3F77F8A8.10229.33B6CEFF@localhost> (raw)
In-Reply-To: <bl9a9i$15g5$1@news.hub.org>

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/




view thread (4+ messages)

Message-ID: <3F77F8A8.10229.33B6CEFF@localhost>
Permalink:  ../3F77F8A8.10229.33B6CEFF@localhost/
Also on:    postgresql.org/message-id/3F77F8A8.10229.33B6CEFF@localhost

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: dan@langille.org, keresztes_m@yahoo.com
  Subject: Re: now() in loop statement
  In-Reply-To: <3F77F8A8.10229.33B6CEFF@localhost>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox