postgresql/src/include/optimizer
Tom Lane 0436679969 Get rid of adjust_appendrel_attr_needed(), which has been broken ever since
we extended the appendrel mechanism to support UNION ALL optimization.  The
reason nobody noticed was that we are not actually using attr_needed data for
appendrel children; hence it seems more reasonable to rip it out than fix it.
Back-patch to 8.2 because an Assert failure is possible in corner cases.
Per examination of an example from Jim Nasby.

In HEAD, also get rid of AppendRelInfo.col_mappings, which is quite inadequate
to represent UNION ALL situations; depend entirely on translated_vars instead.
2008-11-11 18:13:32 +00:00
..
clauses.h Improve the recently-added code for inlining set-returning functions so that 2008-10-09 19:27:40 +00:00
cost.h Implement SQL-standard WITH clauses, including WITH RECURSIVE. 2008-10-04 21:56:55 +00:00
geqo.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
geqo_copy.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
geqo_gene.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
geqo_misc.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
geqo_mutation.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
geqo_pool.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
geqo_random.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
geqo_recombination.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
geqo_selection.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
joininfo.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
pathnode.h Implement SQL-standard WITH clauses, including WITH RECURSIVE. 2008-10-04 21:56:55 +00:00
paths.h Implement SEMI and ANTI joins in the planner and executor. (Semijoins replace 2008-08-14 18:48:00 +00:00
placeholder.h Add a concept of "placeholder" variables to the planner. These are variables 2008-10-21 20:42:53 +00:00
plancat.h Clean up the loose ends in selectivity estimation left by my patch for semi 2008-08-16 00:01:38 +00:00
planmain.h Extend CTE patch to support recursive UNION (ie, without ALL). The 2008-10-07 19:27:04 +00:00
planner.h Implement SQL-standard WITH clauses, including WITH RECURSIVE. 2008-10-04 21:56:55 +00:00
predtest.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
prep.h Get rid of adjust_appendrel_attr_needed(), which has been broken ever since 2008-11-11 18:13:32 +00:00
restrictinfo.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
subselect.h Implement SQL-standard WITH clauses, including WITH RECURSIVE. 2008-10-04 21:56:55 +00:00
tlist.h Improve INTERSECT/EXCEPT hashing by realizing that we don't need to make any 2008-08-07 19:35:02 +00:00
var.h Add a concept of "placeholder" variables to the planner. These are variables 2008-10-21 20:42:53 +00:00