]> granicus.if.org Git - postgresql/commit
Fix a bug in the original implementation of redundant-join-clause removal:
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 31 Jul 2007 19:53:37 +0000 (19:53 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 31 Jul 2007 19:53:37 +0000 (19:53 +0000)
commited5d55dafe96627fe810dec80ccba98df0b6834b
tree37c1feb55d8c1ec0f08535a84b6469eac9d8c4ab
parentbc421c35b1ee6beada9b357429847a2b3a0e4449
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.
src/test/regress/expected/join.out
src/test/regress/expected/join_1.out
src/test/regress/sql/join.sql