postgresql/src/backend/optimizer/util
Tom Lane d7a6a04dc7 Fix planner to restore its previous level of intelligence about pushing
constants through full joins, as in

	select * from tenk1 a full join tenk1 b using (unique1)
	where unique1 = 42;

which should generate a fairly cheap plan where we apply the constraint
unique1 = 42 in each relation scan.  This had been broken by my patch of
2008-06-27, which is now reverted in favor of a more invasive but hopefully
less incorrect approach.  That patch was meant to prevent incorrect extraction
of OR'd indexclauses from OR conditions above an outer join.  To do that
correctly we need more information than the outerjoin_delay flag can provide,
so add a nullable_relids field to RestrictInfo that records exactly which
relations are nulled by outer joins that are underneath a particular qual
clause.  A side benefit is that we can make the test in create_or_index_quals
more specific: it is now smart enough to extract an OR'd indexclause into the
outer side of an outer join, even though it must not do so in the inner side.
The old coding couldn't distinguish these cases so it could not do either.
2009-04-16 20:42:16 +00:00
..
clauses.c Get rid of the rather fuzzily defined FlattenedSubLink node type in favor of 2009-02-25 03:30:38 +00:00
joininfo.c Update copyright for 2009. 2009-01-01 17:24:05 +00:00
Makefile Add a concept of "placeholder" variables to the planner. These are variables 2008-10-21 20:42:53 +00:00
pathnode.c If we expect a hash join to be performed in multiple batches, suppress 2009-03-26 17:15:35 +00:00
placeholder.c Update copyright for 2009. 2009-01-01 17:24:05 +00:00
plancat.c Teach the planner to support index access methods that only implement 2009-03-05 23:06:45 +00:00
predtest.c Arrange for function default arguments to be processed properly in expressions 2009-01-09 15:46:11 +00:00
relnode.c Update copyright for 2009. 2009-01-01 17:24:05 +00:00
restrictinfo.c Fix planner to restore its previous level of intelligence about pushing 2009-04-16 20:42:16 +00:00
tlist.c Update copyright for 2009. 2009-01-01 17:24:05 +00:00
var.c Get rid of the rather fuzzily defined FlattenedSubLink node type in favor of 2009-02-25 03:30:38 +00:00