Fix a bug in the original implementation of redundant-join-clause removal:
clauses in which one side or the other references both sides of the join
cannot be removed as redundant, because that expression won't have been
constrained below the join. Per report from Sergey Burladyan.
CVS HEAD does not contain this bug due to EquivalenceClass rewrite, but it
seems wise to include the regression test for it anyway.
join.out (r1.30 -> r1.31)
join_1.out (r1.12 -> r1.13)
join.sql (r1.21 -> r1.22)
pgsql-committers by date
|Next:||From: Tom Lane||Date: 2007-07-31 19:53:50|
|Subject: pgsql: Fix a bug in the original implementation of redundant-join-clause |
|Previous:||From: Tom Lane||Date: 2007-07-31 16:36:07|
|Subject: pgsql: If we're gonna use ExecRelationIsTargetRelation here, might as |