From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Doc: caution against misuse of 'now' and related datetime litera
Date: Sat, 17 Oct 2020 20:03:09 +0000
Message-ID: <E1kTsQ1-0003UD-K9@gemulon.postgresql.org> (raw)
Doc: caution against misuse of 'now' and related datetime literals.
Section 8.5.1.4, which defines these literals, made only a vague
reference to the fact that they might be evaluated too soon to be
safe in non-interactive contexts. Provide a more explicit caution
against misuse. Also, generalize the wording in the related tip in
section 9.9.4: while it clearly described this problem, it implied
(or really, stated outright) that the problem only applies to table
DEFAULT clauses.
Per gripe from Tijs van Dam. Back-patch to all supported branches.
Discussion: https://postgr.es/m/c2LuRv9BiRT3bqIo5mMQiVraEXey_25B4vUn0kDqVqilwOEu_iVF1tbtvLnyQK7yDG3PFaz_GxLLPil2...
Branch
------
REL_12_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/3753e2720a9691d38aa85fe1e641ba55703e2a6f
Modified Files
--------------
doc/src/sgml/datatype.sgml | 20 +++++++++++++++++---
doc/src/sgml/func.sgml | 8 +++++---
2 files changed, 22 insertions(+), 6 deletions(-)
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Doc: caution against misuse of 'now' and related datetime litera
In-Reply-To: <E1kTsQ1-0003UD-K9@gemulon.postgresql.org>
References: <E1kTsQ1-0003UD-K9@gemulon.postgresql.org>
* 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