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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Reject out-of-range dates in to_date().
Date: 2013-01-14 20:28:58
Message-ID: E1TuqeQ-0001Ss-U1@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/d4c78c1811d14b14f47f3611bf2c2c1a35817988

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

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2013-01-14 20:48:28 pgsql: Fix obsolete SQL syntax in comment.
Previous Message Tom Lane 2013-01-14 19:48:42 pgsql: Add new timezone abbrevation "FET".