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

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 5c4eb9166ed35dedc010ec973a55ff1a244cf87a
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2013-01-14T20:19:48Z
Releases: 9.3.0
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

Files

PathChange+/−
src/backend/utils/adt/formatting.c modified +6 −0