]> 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:20:50 +0000 (15:20 -0500)
commite2120d756885ce03e7b75b6aec2e93a63ce68a85
tree49448ddff0b27611fbbe6625f3f2741fdcb6d05e
parentdc745164f06c8127e598de139f786598ce6f5f34
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