postgresql/src/include/optimizer
Tom Lane 7e3bf99baa 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:50:58 -04:00
..
clauses.h Avoid listing ungrouped Vars in the targetlist of Agg-underneath-Window. 2011-07-12 18:24:39 -04:00
cost.h Support index-only scans using the visibility map to avoid heap fetches. 2011-10-07 20:14:13 -04:00
geqo.h Make pgbench use erand48() rather than random(). 2011-08-03 16:26:40 -04: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 Remove unnecessary #include references, per pgrminclude script. 2011-09-01 10:04:27 -04: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 Support index-only scans using the visibility map to avoid heap fetches. 2011-10-07 20:14:13 -04:00
paths.h Improve planner's ability to recognize cases where an IN's RHS is unique. 2011-10-26 17:52:29 -04:00
placeholder.h Fix nested PlaceHolderVar expressions that appear only in targetlists. 2011-08-09 00:50:07 -04:00
plancat.h Measure the number of all-visible pages for use in index-only scan costing. 2011-10-14 17:23:46 -04:00
planmain.h Rearrange planner to save the whole PlannerInfo (subroot) for a subquery. 2011-09-03 15:36:24 -04:00
planner.h Recognize self-contradictory restriction clauses for non-table relations. 2011-09-24 19:33:16 -04: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:50:58 -04:00
tlist.h Avoid listing ungrouped Vars in the targetlist of Agg-underneath-Window. 2011-07-12 18:24:39 -04:00
var.h Support index-only scans using the visibility map to avoid heap fetches. 2011-10-07 20:14:13 -04:00