From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Christoph Haller <ch(at)rodos(dot)fzk(dot)de> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: now() does not change within a transaction |
Date: | 2002-04-18 15:50:57 |
Message-ID: | 200204181550.g3IFovL13125@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Christoph Haller wrote:
> 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.
Yes, this is intended and will not change.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2002-04-18 16:15:43 | Re: SQL Query Optimization |
Previous Message | Josh Berkus | 2002-04-18 15:43:53 | Re: SQL Query Optimization |