pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove explicit error handling for obsolete date/time values
Date: Sun, 30 Jun 2019 09:04:42 +0000
Message-ID: <E1hhVlK-0005Yh-9H@gemulon.postgresql.org> (raw)

Remove explicit error handling for obsolete date/time values

The date/time values 'current', 'invalid', and 'undefined' were
removed a long time ago, but the code still contains explicit error
handling for the transition.  To simplify the code and avoid having to
handle these values everywhere, just remove the recognition of these
tokens altogether now.

Reviewed-by: Michael Paquier <michael@paquier.xyz>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/666cbae16da46b833f57ef8b12ff0bf215684d9c

Modified Files
--------------
src/backend/utils/adt/date.c               |  8 --------
src/backend/utils/adt/datetime.c           | 20 --------------------
src/backend/utils/adt/timestamp.c          | 22 ----------------------
src/include/utils/datetime.h               |  2 --
src/interfaces/ecpg/pgtypeslib/dt.h        |  2 --
src/interfaces/ecpg/pgtypeslib/dt_common.c |  5 -----
src/interfaces/ecpg/pgtypeslib/timestamp.c |  4 ----
src/test/regress/expected/date.out         |  3 ---
src/test/regress/expected/timestamp.out    | 13 -------------
src/test/regress/expected/timestamptz.out  | 13 -------------
src/test/regress/sql/date.sql              |  1 -
src/test/regress/sql/timestamp.sql         |  4 ----
src/test/regress/sql/timestamptz.sql       |  4 ----
13 files changed, 101 deletions(-)



Message-ID: <E1hhVlK-0005Yh-9H@gemulon.postgresql.org>
Permalink:  ../E1hhVlK-0005Yh-9H@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1hhVlK-0005Yh-9H@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: peter@eisentraut.org
  Subject: Re: pgsql: Remove explicit error handling for obsolete date/time values
  In-Reply-To: <E1hhVlK-0005Yh-9H@gemulon.postgresql.org>
  References: <E1hhVlK-0005Yh-9H@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