pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Accept "+infinity" in date and timestamp[tz] input.
Date: Sun, 01 Jan 2023 19:16:16 +0000
Message-ID: <E1pC3oe-001YvF-5I@gemulon.postgresql.org> (raw)

Accept "+infinity" in date and timestamp[tz] input.

The float and numeric types accept this variant spelling of
"infinity", so it seems like the datetime types should too.

Vik Fearing, some cosmetic mods by me

Discussion: https://postgr.es/m/d0bef637-2dbd-0a5d-e539-48243b6f6c5e@postgresfriends.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2ceea5adb02603ef52579b568ca2c5aebed87358

Modified Files
--------------
src/backend/utils/adt/datetime.c          | 1 +
src/test/regress/expected/date.out        | 6 ++++++
src/test/regress/expected/timestamp.out   | 6 ++++++
src/test/regress/expected/timestamptz.out | 6 ++++++
src/test/regress/sql/date.sql             | 2 ++
src/test/regress/sql/timestamp.sql        | 2 ++
src/test/regress/sql/timestamptz.sql      | 2 ++
7 files changed, 25 insertions(+)



Message-ID: <E1pC3oe-001YvF-5I@gemulon.postgresql.org>
Permalink:  ../E1pC3oe-001YvF-5I@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1pC3oe-001YvF-5I@gemulon.postgresql.org

 · 

reply

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: Accept "+infinity" in date and timestamp[tz] input.
  In-Reply-To: <E1pC3oe-001YvF-5I@gemulon.postgresql.org>
  References: <E1pC3oe-001YvF-5I@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