]> 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:31 +0000 (15:20 -0500)
commit78298daa4e4c890cf397f9aaf4598987bb2f6d5b
tree18bf117d2a029bcdfb7dc121f13dc372614288e3
parentec6de23a0c0d33bb170252bab4ff5e835f9f3bf2
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