postgresql/src/test
Tom Lane 1f7cb5c309 Improve handling of INT_MIN / -1 and related cases.
Some platforms throw an exception for this division, rather than returning
a necessarily-overflowed result.  Since we were testing for overflow after
the fact, an exception isn't nice.  We can avoid the problem by treating
division by -1 as negation.

Add some regression tests so that we'll find out if any compilers try to
optimize away the overflow check conditions.

This ought to be back-patched, but I'm going to see what the buildfarm
reports about the regression tests first.

Per discussion with Xi Wang, though this is different from the patch he
submitted.
2012-11-19 12:24:25 -05:00
..
examples Fix lo_export usage in example programs. 2012-10-08 21:19:54 -04:00
isolation Fix bogus handling of $(X) (i.e., ".exe") in isolationtester Makefile. 2012-11-01 19:48:53 -04:00
locale Run newly-configured perltidy script on Perl files. 2012-07-04 21:47:49 -04:00
mb Lots of doc corrections. 2012-04-23 22:43:09 -04:00
performance Run newly-configured perltidy script on Perl files. 2012-07-04 21:47:49 -04:00
regress Improve handling of INT_MIN / -1 and related cases. 2012-11-19 12:24:25 -05:00
thread Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
Makefile Add isolation test to check-world and installcheck-world 2012-03-05 20:19:20 +02:00