pgsql: Reject out-of-range dates in to_date(). - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Reject out-of-range dates in to_date().
Date
Msg-id E1TuqeQ-0001Sn-U9@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Reject out-of-range dates in to_date().

Dates outside the supported range could be entered, but would not print
reasonably, and operations such as conversion to timestamp wouldn't behave
sanely either.  Since this has the potential to result in undumpable table
data, it seems worth back-patching.

Hitoshi Harada

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/5c4eb9166ed35dedc010ec973a55ff1a244cf87a

Modified Files
--------------
src/backend/utils/adt/formatting.c |    6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: On second thought, use an empty string instead of "none" when no
Next
From: Alvaro Herrera
Date:
Subject: pgsql: Split out XLog reading as an independent facility