postgresql/src/include/optimizer
Tom Lane 1c72a8a37a Fix extremely nasty little bug observed when a sub-SELECT appears in
WHERE in a place where it can be part of a nestloop inner indexqual.
As the code stood, it put the same physical sub-Plan node into both
indxqual and indxqualorig of the IndexScan plan node.  That confused
later processing in the optimizer (which expected that tracing the
subPlan list would visit each subplan node exactly once), and would
probably have blown up in the executor if the planner hadn't choked first.
Fix by making the 'fixed' indexqual be a complete deep copy of the
original indexqual, rather than trying to share nodes below the topmost
operator node.  This had further ramifications though, because we were
making the aforesaid list of sub-Plan nodes during SS_process_sublinks
which is run before construction of the 'fixed' indexqual, meaning that
the copy of the sub-Plan didn't show up in that list.  Fix by rearranging
logic so that the sub-Plan list is built by the final set_plan_references
pass, not in SS_process_sublinks.  This may sound like a mess, but it's
actually a good deal cleaner now than it was before, because we are no
longer dependent on the assumption that planning will never make a copy
of a sub-Plan node.
2000-04-04 01:21:48 +00:00
..
_deadcode Add: 2000-01-26 05:58:53 +00:00
clauses.h Fix extremely nasty little bug observed when a sub-SELECT appears in 2000-04-04 01:21:48 +00:00
cost.h Repair logic flaw in cost estimator: cost_nestloop() was estimating CPU 2000-03-22 22:08:35 +00:00
geqo.h Add: 2000-01-26 05:58:53 +00:00
geqo_copy.h Add: 2000-01-26 05:58:53 +00:00
geqo_gene.h Add: 2000-01-26 05:58:53 +00:00
geqo_misc.h Add: 2000-01-26 05:58:53 +00:00
geqo_mutation.h Add: 2000-01-26 05:58:53 +00:00
geqo_pool.h Add: 2000-01-26 05:58:53 +00:00
geqo_random.h Add: 2000-01-26 05:58:53 +00:00
geqo_recombination.h Add: 2000-01-26 05:58:53 +00:00
geqo_selection.h Add: 2000-01-26 05:58:53 +00:00
internal.h Add: 2000-01-26 05:58:53 +00:00
joininfo.h Add: 2000-01-26 05:58:53 +00:00
pathnode.h New cost model for planning, incorporating a penalty for random page 2000-02-15 20:49:31 +00:00
paths.h New cost model for planning, incorporating a penalty for random page 2000-02-15 20:49:31 +00:00
plancat.h Add: 2000-01-26 05:58:53 +00:00
planmain.h New cost model for planning, incorporating a penalty for random page 2000-02-15 20:49:31 +00:00
planner.h Restructure planning code so that preprocessing of targetlist and quals 2000-03-21 05:12:12 +00:00
prep.h Add: 2000-01-26 05:58:53 +00:00
restrictinfo.h Add: 2000-01-26 05:58:53 +00:00
subselect.h Fix extremely nasty little bug observed when a sub-SELECT appears in 2000-04-04 01:21:48 +00:00
tlist.h Redesign DISTINCT ON as discussed in pgsql-sql 1/25/00: syntax is now 2000-01-27 18:11:50 +00:00
var.h Add: 2000-01-26 05:58:53 +00:00