From: Christoph Haller <ch@rodos.fzk.de>
To: pgsql-sql@postgresql.org
Subject: now() does not change within a transaction
Date: Thu, 18 Apr 2002 14:04:35 METDST
Message-ID: <200204181204.OAA11703@rodos> (raw)
Hi pgsql-sql list,
I did some testing around tables using a column
timestamp with time zone not null default now().
I have noticed a valuable feature:
As long as being inside a transaction initiated by
begin;
the return value of the now() function does not change.
Is this intended - as written in the documentation?
Can I rely on it, so future releases of PostgreSQL
will act the same.
Regards, Christoph
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: ch@rodos.fzk.de
Subject: Re: now() does not change within a transaction
In-Reply-To: <200204181204.OAA11703@rodos>
* 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