]> 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:15 +0000 (15:20 -0500)
commitd4c78c1811d14b14f47f3611bf2c2c1a35817988
treee28386d14ab20c4a62006a6e51a183a5c033e637
parentdc0c987574d89b4f257218e91adac1537a4c2c3e
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