]> granicus.if.org Git - postgresql/commit
Reject out-of-range dates in to_date().
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 14 Jan 2013 20:19:48 +0000 (15:19 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 14 Jan 2013 20:19:48 +0000 (15:19 -0500)
commit5c4eb9166ed35dedc010ec973a55ff1a244cf87a
tree8c5fbe9e614e513f52d2ab203c5a6a18ae1ec4f2
parent7127293a5d9f655ce3ec7e009f18bac8d3d0bc1c
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
src/backend/utils/adt/formatting.c