postgresql/src/test/regress
Tom Lane b28ffd0fcc Fix pushing of index-expression qualifications through UNION ALL.
In commit 57664ed25e, I made the planner
wrap non-simple-variable outputs of appendrel children (IOW, child SELECTs
of UNION ALL subqueries) inside PlaceHolderVars, in order to solve some
issues with EquivalenceClass processing.  However, this means that any
upper-level WHERE clauses mentioning such outputs will now contain
PlaceHolderVars after they're pushed down into the appendrel child,
and that prevents indxpath.c from recognizing that they could be matched
to index expressions.  To fix, add explicit stripping of PlaceHolderVars
from index operands, same as we have long done for RelabelType nodes.
Add a regression test covering both this and the plain-UNION case (which
is a totally different code path, but should also be able to do it).

Per bug #6416 from Matteo Beccati.  Back-patch to 9.1, same as the
previous change.
2012-01-29 16:31:23 -05:00
..
data Fix GIN to support null keys, empty and null items, and full index scans. 2011-01-07 19:16:24 -05:00
expected Fix pushing of index-expression qualifications through UNION ALL. 2012-01-29 16:31:23 -05:00
input Support SECURITY LABEL on databases, tablespaces, and roles. 2011-07-20 13:18:24 -04:00
output Rename the internal structures of the CREATE TABLE (LIKE ...) facility 2012-01-07 23:02:33 +02:00
sql Fix pushing of index-expression qualifications through UNION ALL. 2012-01-29 16:31:23 -05:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
GNUmakefile Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
Makefile Remove remains of old depend target. 2007-01-20 17:16:17 +00:00
parallel_schedule Rename the internal structures of the CREATE TABLE (LIKE ...) facility 2012-01-07 23:02:33 +02:00
pg_regress.c pg_regress: Replace exit_nicely() with exit() plus atexit() hook 2012-01-02 22:09:25 +02:00
pg_regress.h pg_regress: Replace exit_nicely() with exit() plus atexit() hook 2012-01-02 22:09:25 +02:00
pg_regress_main.c pg_regress: Replace exit_nicely() with exit() plus atexit() hook 2012-01-02 22:09:25 +02:00
regress.c Redesign the plancache mechanism for more flexibility and efficiency. 2011-09-16 00:43:52 -04:00
regressplans.sh Tweak regressplans.sh to use any already-set PGOPTIONS. 2000-12-18 02:45:47 +00:00
resultmap Enable compiling with the mingw-w64 32 bit compiler. 2011-12-10 15:35:41 -05:00
serial_schedule Rename the internal structures of the CREATE TABLE (LIKE ...) facility 2012-01-07 23:02:33 +02:00
standby_schedule Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00