Adjust the definition of is_pushed_down so that it's always true for INNER
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 16 Feb 2007 20:57:26 +0000 (20:57 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 16 Feb 2007 20:57:26 +0000 (20:57 +0000)
commit26e0a3fea7d72458ebb25dc2c8d472ff18876df5
treed0da72fb07f5cc2beb174be82fea36f11dfb157a
parent77cc754fd606777ecbc5694de6b8fb07be736ba1
Adjust the definition of is_pushed_down so that it's always true for INNER
JOIN quals, just like WHERE quals, even if they reference every one of the
join's relations.  Now that we can reorder outer and inner joins, it's
possible for such a qual to end up being assigned to an outer join plan node,
and we mustn't have it treated as a join qual rather than a filter qual for
the node.  (If it were, the join could produce null-extended rows that it
shouldn't.)  Per bug report from Pelle Johansson.
src/backend/optimizer/plan/initsplan.c
src/include/nodes/relation.h