pgsql: Reject combining "epoch" and "infinity" with other datetime fiel - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Reject combining "epoch" and "infinity" with other datetime fiel
Date
Msg-id E1paO8K-002kW9-Qy@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Jeff Davis
Date:
Subject: pgsql: Use ICU by default at initdb time.
Next
From: Jeff Davis
Date:
Subject: Re: pgsql: pg_upgrade: copy locale and encoding information to new cluster.