postgresql/src/test
Tom Lane 8fb61e0b54 Fix oversight in flattening of subqueries with empty FROM.
I missed a restriction that commit f4abd0241d
should have enforced: we can't pull up an empty-FROM subquery if it's under
an outer join, because then we'd need to wrap its output columns in
PlaceHolderVars.  As the code currently stands, the PHVs end up with empty
relid sets, which doesn't work (and is correctly caught by an Assert).

It's possible that this could be fixed by assigning the PHVs the relid
sets of the parent FromExpr/JoinExpr, but getting that to work is more
complication than I care to add right now; indeed it's likely that
we'll never bother, since pulling up empty-FROM subqueries is a rather
marginal optimization anyway.

Per report from Andreas Seltenreich.  Back-patch to 9.5 where the faulty
code was added.
2015-07-26 17:44:27 -04:00
..
examples Fix up .gitignore and cleanup actions in some src/test/ subdirectories. 2015-04-24 17:13:06 -04:00
isolation Fix portability issue in isolationtester grammar. 2015-05-27 19:14:51 -04:00
locale Fix up .gitignore and cleanup actions in some src/test/ subdirectories. 2015-04-24 17:13:06 -04:00
mb Fix outdated src/test/mb/ tests, and add a GB18030 test. 2015-05-15 13:47:42 -04:00
modules Redirect install output of make check into a log file 2015-07-23 09:53:46 -04:00
perl pgindent run for 9.5 2015-05-23 21:35:49 -04:00
regress Fix oversight in flattening of subqueries with empty FROM. 2015-07-26 17:44:27 -04:00
ssl Change TAP test framework to not rely on having a chmod executable. 2015-06-19 10:52:00 -04:00
thread Fix up .gitignore and cleanup actions in some src/test/ subdirectories. 2015-04-24 17:13:06 -04:00
Makefile Fix up .gitignore and cleanup actions in some src/test/ subdirectories. 2015-04-24 17:13:06 -04:00