Fix a bug in the original implementation of redundant-join-clause removal:

Tom Lane <tgl@sss.pgh.pa.us>

Commit: c14066aa7049bac14cadc18d0c48bcf6ea81ff52
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2007-07-31T19:54:27Z
Releases: 7.4.18
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.

Files