postgresql/src/test
Tom Lane b62f94c603 Allow simplification of EXISTS() subqueries containing LIMIT.
The locution "EXISTS(SELECT ... LIMIT 1)" seems to be rather common among
people who don't realize that the database already performs optimizations
equivalent to putting LIMIT 1 in the sub-select.  Unfortunately, this was
actually making things worse, because it prevented us from optimizing such
EXISTS clauses into semi or anti joins.  Teach simplify_EXISTS_query() to
suppress constant-positive LIMIT clauses.  That fixes the semi/anti-join
case, and may help marginally even for cases that have to be left as
sub-SELECTs.

Marti Raudsepp, reviewed by David Rowley
2014-11-22 19:12:38 -05:00
..
examples Update copyright for 2014 2014-01-07 16:05:30 -05:00
isolation Implement SKIP LOCKED for row-level locks 2014-10-07 17:23:34 -03:00
locale Rename 'gmake' to 'make' in docs and recommended commands 2014-02-12 17:29:19 -05: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
perl Add configure --enable-tap-tests option 2014-11-02 09:17:26 -05:00
regress Allow simplification of EXISTS() subqueries containing LIMIT. 2014-11-22 19:12:38 -05:00
thread Remove dependency on wsock32.lib in favor of ws2_32 2014-07-15 14:18:39 +02:00
Makefile Add isolation test to check-world and installcheck-world 2012-03-05 20:19:20 +02:00