postgresql/src/include/nodes
Tom Lane e6ae3b5dbf Add a concept of "placeholder" variables to the planner. These are variables
that represent some expression that we desire to compute below the top level
of the plan, and then let that value "bubble up" as though it were a plain
Var (ie, a column value).

The immediate application is to allow sub-selects to be flattened even when
they are below an outer join and have non-nullable output expressions.
Formerly we couldn't flatten because such an expression wouldn't properly
go to NULL when evaluated above the outer join.  Now, we wrap it in a
PlaceHolderVar and arrange for the actual evaluation to occur below the outer
join.  When the resulting Var bubbles up through the join, it will be set to
NULL if necessary, yielding the correct results.  This fixes a planner
limitation that's existed since 7.1.

In future we might want to use this mechanism to re-introduce some form of
Hellerstein's "expensive functions" optimization, ie place the evaluation of
an expensive function at the most suitable point in the plan tree.
2008-10-21 20:42:53 +00:00
..
bitmapset.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
execnodes.h Extend CTE patch to support recursive UNION (ie, without ALL). The 2008-10-07 19:27:04 +00:00
makefuncs.h Add a bunch of new error location reports to parse-analysis error messages. 2008-09-01 20:42:46 +00:00
memnodes.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
nodeFuncs.h Implement SQL-standard WITH clauses, including WITH RECURSIVE. 2008-10-04 21:56:55 +00:00
nodes.h Add a concept of "placeholder" variables to the planner. These are variables 2008-10-21 20:42:53 +00:00
params.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
parsenodes.h Implement SQL-standard WITH clauses, including WITH RECURSIVE. 2008-10-04 21:56:55 +00:00
pg_list.h Implement SEMI and ANTI joins in the planner and executor. (Semijoins replace 2008-08-14 18:48:00 +00:00
plannodes.h Extend CTE patch to support recursive UNION (ie, without ALL). The 2008-10-07 19:27:04 +00:00
primnodes.h When expanding a whole-row Var into a RowExpr during ResolveNew(), attach 2008-10-06 17:39:26 +00:00
print.h Improve our #include situation by moving pointer types away from the 2008-06-19 00:46:06 +00:00
readfuncs.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
relation.h Add a concept of "placeholder" variables to the planner. These are variables 2008-10-21 20:42:53 +00:00
tidbitmap.h Replace "amgetmulti" AM functions with "amgetbitmap", in which the whole 2008-04-10 22:25:26 +00:00
value.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00