postgresql/src/include/optimizer
Tom Lane e4e60e7b61 Fix handling of PlaceHolderVars in nestloop parameter management.
If we use a PlaceHolderVar from the outer relation in an inner indexscan,
we need to reference the PlaceHolderVar as such as the value to be passed
in from the outer relation.  The previous code effectively tried to
reconstruct the PHV from its component expression, which doesn't work since
(a) the Vars therein aren't necessarily bubbled up far enough, and (b) it
would be the wrong semantics anyway because of the possibility that the PHV
is supposed to have gone to null at some point before the current join.
Point (a) led to "variable not found in subplan target list" planner
errors, but point (b) would have led to silently wrong answers.
Per report from Roger Niederland.
2011-11-03 00:51:06 -04:00
..
clauses.h Avoid listing ungrouped Vars in the targetlist of Agg-underneath-Window. 2011-07-12 18:24:53 -04:00
cost.h Improve cost estimation for aggregates and window functions. 2011-04-24 16:55:20 -04:00
geqo.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
geqo_copy.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
geqo_gene.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
geqo_misc.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
geqo_mutation.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
geqo_pool.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
geqo_random.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
geqo_recombination.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
geqo_selection.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
joininfo.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
pathnode.h pgindent run before PG 9.1 beta 1. 2011-04-10 11:42:00 -04:00
paths.h pgindent run before PG 9.1 beta 1. 2011-04-10 11:42:00 -04:00
placeholder.h Fix nested PlaceHolderVar expressions that appear only in targetlists. 2011-08-09 00:48:58 -04:00
plancat.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
planmain.h Fix nested PlaceHolderVar expressions that appear only in targetlists. 2011-08-09 00:48:58 -04:00
planner.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
predtest.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
prep.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
restrictinfo.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
subselect.h Fix handling of PlaceHolderVars in nestloop parameter management. 2011-11-03 00:51:06 -04:00
tlist.h Avoid listing ungrouped Vars in the targetlist of Agg-underneath-Window. 2011-07-12 18:24:53 -04:00
var.h Avoid listing ungrouped Vars in the targetlist of Agg-underneath-Window. 2011-07-12 18:24:53 -04:00