Add checks for interval overflow/underflow
Bruce Momjian <bruce@momjian.us>
Add checks for interval overflow/underflow New checks include input, month/day/time internal adjustments, addition, subtraction, multiplication, and negation. Also adjust docs to correctly specify interval size in bytes. Report from Rok Kralj
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/datatype.sgml | modified | +1 −1 |
| src/backend/utils/adt/datetime.c | modified | +3 −0 |
| src/backend/utils/adt/timestamp.c | modified | +90 −6 |
| src/interfaces/ecpg/pgtypeslib/interval.c | modified | +3 −0 |