postgresql/src/include/nodes
Tom Lane a1feb90ef3 Fix an oversight in the code that makes transitive-equality deductions from
outer join clauses.  Given, say,
	... from a left join b on a.a1 = b.b1 where a.a1 = 42;
we'll deduce a clause b.b1 = 42 and then mark the original join clause
redundant (we can't remove it completely for reasons I don't feel like
squeezing into this log entry).  However the original implementation of
that wasn't bulletproof, because clause_selectivity() wouldn't honor
this_selec if given nonzero varRelid --- which in practice meant that
it worked as desired *except* when considering index scan quals.  Which
resulted in bogus underestimation of the size of the indexscan result for
an inner indexscan in an outer join, and consequently a possibly bad
choice of indexscan vs. bitmap scan.  Fix by introducing an explicit test
into clause_selectivity().  Also, to make sure we don't trigger that test
in corner cases, change the convention to be that this_selec > 1, not
this_selec = 1, means it's been marked redundant.  Per trouble report from
Scara Maccai.

Back-patch to 8.2, where the problem was introduced.
2008-12-01 21:06:13 +00:00
..
bitmapset.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
execnodes.h Modify UPDATE/DELETE WHERE CURRENT OF to use the FOR UPDATE infrastructure to 2008-11-16 17:34:28 +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 Switch the planner over to treating qualifications of a JOIN_SEMI join as 2008-11-22 22:47:06 +00:00
params.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
parsenodes.h CLUSTER VERBOSE and corresponding clusterdb --verbose option 2008-11-24 08:46:04 +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 Fix an oversight in the code that makes transitive-equality deductions from 2008-12-01 21:06:13 +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