Rework join-removal logic as per recent discussion. In particular this

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

Commit: b78f6264eba33e2966447572b8261e353df01e59
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2010-03-28T22:59:34Z
Releases: 9.0.0
Rework join-removal logic as per recent discussion.  In particular this
fixes things so that it works for cases where nested removals are possible.
The overhead of the optimization should be significantly less, as well.

Files