postgresql/src/test/regress
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
..
data Improve key representation for GIN jsonb_ops, and fix existence-search bug. 2014-05-09 08:41:26 -04:00
expected Allow simplification of EXISTS() subqueries containing LIMIT. 2014-11-22 19:12:38 -05:00
input Use just one database connection in the "tablespace" test. 2014-11-12 07:33:17 -05:00
output Add test cases for indexam operations not currently covered. 2014-11-19 19:47:43 +02:00
sql Allow simplification of EXISTS() subqueries containing LIMIT. 2014-11-22 19:12:38 -05:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
GNUmakefile Finish adding file version information to installed Windows binaries. 2014-08-18 22:59:53 -04:00
Makefile Remove remains of old depend target. 2007-01-20 17:16:17 +00:00
parallel_schedule Add test cases for indexam operations not currently covered. 2014-11-19 19:47:43 +02:00
pg_regress_main.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
pg_regress.c Secure Unix-domain sockets of "make check" temporary clusters. 2014-06-14 09:41:13 -04:00
pg_regress.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
README Don't generate plain-text HISTORY and src/test/regress/README anymore. 2014-02-10 20:48:04 -05:00
regress.c Add a comment to regress.c explaining what it contains. 2014-11-21 15:07:29 +02:00
regressplans.sh Rename 'gmake' to 'make' in docs and recommended commands 2014-02-12 17:29:19 -05:00
resultmap Enable compiling with the mingw-w64 32 bit compiler. 2011-12-10 15:35:41 -05:00
serial_schedule Add test cases for indexam operations not currently covered. 2014-11-19 19:47:43 +02:00
standby_schedule Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00

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