From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Reject combining "epoch" and "infinity" with other datetime fiel
Date: Thu, 09 Mar 2023 21:49:09 +0000
Message-ID: <E1paO8K-002kW9-Qy@gemulon.postgresql.org> (raw)
Reject combining "epoch" and "infinity" with other datetime fields.
Datetime input formerly accepted combinations such as
'1995-08-06 infinity', but this seems like a clear error.
Reject any combination of regular y/m/d/h/m/s fields with
these special tokens.
Joseph Koshakow, reviewed by Keisuke Kuroda and myself
Discussion: https://postgr.es/m/CAAvxfHdm8wwXwG_FFRaJ1nTHiMWb7YXS2YKCzCt8Q0a2ZoMcHg@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/bcc704b52490492e6bd73c4444056b3e9644504d
Modified Files
--------------
src/backend/utils/adt/datetime.c | 40 ++++++++++------
src/test/regress/expected/horology.out | 85 ++++++++++++++++++++++++++++++++++
src/test/regress/sql/horology.sql | 23 +++++++++
3 files changed, 133 insertions(+), 15 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: Reject combining "epoch" and "infinity" with other datetime fiel
In-Reply-To: <E1paO8K-002kW9-Qy@gemulon.postgresql.org>
References: <E1paO8K-002kW9-Qy@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