Extend the date type to support infinity and -infinity, analogously to
Tom Lane <tgl@sss.pgh.pa.us>
Extend the date type to support infinity and -infinity, analogously to the timestamp types. Turns out this doesn't even reduce the available range of dates, since the restriction to dates that work for Julian-date arithmetic is much tighter than the int32 range anyway. Per a longstanding TODO item.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/datatype.sgml | modified | +3 −3 |
| doc/src/sgml/func.sgml | modified | +10 −2 |
| src/backend/utils/adt/date.c | modified | +132 −55 |
| src/backend/utils/adt/xml.c | modified | +6 −1 |
| src/include/catalog/catversion.h | modified | +2 −2 |
| src/include/catalog/pg_proc.h | modified | +3 −1 |
| src/include/utils/date.h | modified | +16 −1 |
| src/test/regress/expected/date.out | modified | +27 −0 |
| src/test/regress/sql/date.sql | modified | +7 −0 |