postgresql/src
Tom Lane f2ba1e994c Avoid unexpected conversion overflow in planner for distant date values.
The "date" type supports a wider range of dates than int64 timestamps do.
However, there is pre-int64-timestamp code in the planner that assumes that
all date values can be converted to timestamp with impunity.  Fortunately,
what we really need out of the conversion is always a double (float8)
value; so even when the date is out of timestamp's range it's possible to
produce a sane answer.  All we need is a code path that doesn't try to
force the result into int64.  Per trouble report from David Rericha.

Back-patch to all supported versions.  Although this is surely a corner
case, there's not much point in advertising a date range wider than
timestamp's if we will choke on such values in unexpected places.
2010-12-28 22:49:57 -05:00
..
backend Avoid unexpected conversion overflow in planner for distant date values. 2010-12-28 22:49:57 -05:00
bin Allow vpath builds and regression tests to succeed on Mingw. Backpatch to release 8.4 - earlier releases would require more changes and it's not worth the trouble. 2010-12-24 13:31:28 -05:00
include Avoid unexpected conversion overflow in planner for distant date values. 2010-12-28 22:49:57 -05:00
interfaces Fix ill-advised placement of PGRES_COPY_BOTH enum value. 2010-12-28 11:02:10 -05:00
makefiles Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
pl Corrections to patch adding SQL/MED error codes. 2010-12-26 21:35:25 -05:00
port Remove optreset from src/port/ implementations of getopt and getopt_long. 2010-12-16 16:23:05 -05:00
template Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
test Make output width consistent for all ways of invoking a regression test 2010-12-04 17:34:48 +02:00
timezone Update time zone data files to tzdata release 2010o: DST law changes in 2010-12-13 12:45:31 -05:00
tools Remove -fno-operator-names switch from cpluspluscheck. 2010-12-27 15:03:24 -05:00
tutorial Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Additional fixes for parallel make 2010-11-17 08:08:41 +02:00
Makefile.global.in Only build in crashdump support on Windows if there's a working dbghelp.h. 2010-12-26 10:34:47 -05:00
Makefile.shlib Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
bcc32.mak Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
nls-global.mk Fix makefile logic to not break the build when xgettext is missing 2010-10-14 23:16:46 +03:00
win32.mak Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00