Thread: pgsql: Add checks for interval overflow/underflow

pgsql: Add checks for interval overflow/underflow

From
Bruce Momjian
Date:
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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/146604ec43bcd6f977c31775a91022cf9737daf5

Modified Files
--------------
doc/src/sgml/datatype.sgml                |    2 +-
src/backend/utils/adt/datetime.c          |    3 +
src/backend/utils/adt/timestamp.c         |   96 +++++++++++++++++++++++++++--
src/interfaces/ecpg/pgtypeslib/interval.c |    3 +
4 files changed, 97 insertions(+), 7 deletions(-)