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

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

Commit: 1be62b532b441aaff4b2d9c9dc028b96c4b7a8c7
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2007-07-31T19:53:50Z
Releases: 8.2.5
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