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

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

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