postgresql/src/backend/optimizer/path
Tom Lane 835bb975d8 Restructure building of join relation targetlists so that a join plan
node emits only those vars that are actually needed above it in the
plan tree.  (There were comments in the code suggesting that this was
done at some point in the dim past, but for a long time we have just
made join nodes emit everything that either input emitted.)  Aside from
being marginally more efficient, this fixes the problem noted by Peter
Eisentraut where a join above an IN-implemented-as-join might fail,
because the subplan targetlist constructed in the latter case didn't
meet the expectation of including everything.
Along the way, fix some places that were O(N^2) in the targetlist
length.  This is not all the trouble spots for wide queries by any
means, but it's a step forward.
2003-06-29 23:05:05 +00:00
..
Makefile Fix relative path references so that make knowns which dependencies refer 2000-08-31 16:12:35 +00:00
allpaths.c Restructure building of join relation targetlists so that a join plan 2003-06-29 23:05:05 +00:00
clausesel.c Support expressions of the form 'scalar op ANY (array)' and 2003-06-29 00:33:44 +00:00
costsize.c Restructure building of join relation targetlists so that a join plan 2003-06-29 23:05:05 +00:00
indxpath.c Adjust nestloop-with-inner-indexscan plan generation so that we catch 2003-06-15 22:51:45 +00:00
joinpath.c Replace planner's representation of relation sets, per pghackers discussion. 2003-02-08 20:20:55 +00:00
joinrels.c Replace planner's representation of relation sets, per pghackers discussion. 2003-02-08 20:20:55 +00:00
orindxpath.c Adjust nestloop-with-inner-indexscan plan generation so that we catch 2003-06-15 22:51:45 +00:00
pathkeys.c Restructure building of join relation targetlists so that a join plan 2003-06-29 23:05:05 +00:00
tidpath.c Replace planner's representation of relation sets, per pghackers discussion. 2003-02-08 20:20:55 +00:00