postgresql/src/test/regress
Tom Lane a70e13a39e Be more careful about out-of-range dates and timestamps.
Tighten the semantics of boundary-case timestamptz so that we allow
timestamps >= '4714-11-24 00:00+00 BC' and < 'ENDYEAR-01-01 00:00+00 AD'
exactly, no more and no less, but it is allowed to enter timestamps
within that range using non-GMT timezone offsets (which could make the
nominal date 4714-11-23 BC or ENDYEAR-01-01 AD).  This eliminates
dump/reload failure conditions for timestamps near the endpoints.
To do this, separate checking of the inputs for date2j() from the
final range check, and allow the Julian date code to handle a range
slightly wider than the nominal range of the datatypes.

Also add a bunch of checks to detect out-of-range dates and timestamps
that formerly could be returned by operations such as date-plus-integer.
All C-level functions that return date, timestamp, or timestamptz should
now be proof against returning a value that doesn't pass IS_VALID_DATE()
or IS_VALID_TIMESTAMP().

Vitaly Burovoy, reviewed by Anastasia Lubennikova, and substantially
whacked around by me
2016-03-16 19:09:28 -04:00
..
data
expected Be more careful about out-of-range dates and timestamps. 2016-03-16 19:09:28 -04:00
input Add STRICT to some C functions created by the regression tests. 2016-01-09 13:02:54 -05:00
output Add STRICT to some C functions created by the regression tests. 2016-01-09 13:02:54 -05:00
sql Be more careful about out-of-range dates and timestamps. 2016-03-16 19:09:28 -04:00
.gitignore Update .gitignore for config.cache. 2014-12-18 19:56:42 +09:00
GNUmakefile Respect TEMP_CONFIG when pg_regress_check and friends are called 2016-02-27 12:28:21 -05:00
Makefile
parallel_schedule Add num_nulls() and num_nonnulls() to count NULL arguments. 2016-02-04 23:03:37 -05:00
pg_regress_main.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
pg_regress.c Allow multiple --temp-config arguments to pg_regress 2016-02-28 09:38:43 -05:00
pg_regress.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
README
regress.c Widen query numbers-of-tuples-processed counters to uint64. 2016-03-12 16:05:29 -05:00
regressplans.sh
resultmap
serial_schedule Add num_nulls() and num_nonnulls() to count NULL arguments. 2016-02-04 23:03:37 -05:00
standby_schedule

Documentation concerning how to run these regression tests and interpret
the results can be found in the PostgreSQL manual, in the chapter
"Regression Tests".