From: Bruce Momjian <pgman@candle.pha.pa.us>
To: PostgreSQL-documentation <pgsql-docs@postgresql.org>
Subject: Use of 'now'
Date: Tue, 13 Nov 2001 20:38:41 -0500 (EST)
Message-ID: <200111140138.fAE1cfC10668@candle.pha.pa.us> (raw)
Tatsuo found the following paragraph in the docs, in datatype.sgml:
---------------------------------------------------------------------------
<literal>'now'</literal> is resolved when the value is inserted,
<literal>'current'</literal> is resolved every time the value is
retrieved. So you probably want to use <literal>'now'</literal> in most
applications. (Of course you <emphasis>really</emphasis> want to use
<literal>CURRENT_TIMESTAMP</literal>, which is equivalent to
<literal>'now'</literal>.)
---------------------------------------------------------------------------
This seems wrong to me. What does it mean when it says 'current' is
resolved every time the value is retrieved?
Also, we mention 'now' a lot in the documentation. Should we change
those to CURRENT_TIMESTAMP? I have change that in the FAQ.
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
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-docs@postgresql.org
Cc: pgman@candle.pha.pa.us
Subject: Re: Use of 'now'
In-Reply-To: <200111140138.fAE1cfC10668@candle.pha.pa.us>
* 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