Adjust the definition of RestrictInfo's left_relids and right_relids

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

Commit: be6c38b9033c546e2a8a9fab4329b89be57a263b
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2003-12-30T23:53:15Z
Releases: 8.0.0
Adjust the definition of RestrictInfo's left_relids and right_relids
fields: now they are valid whenever the clause is a binary opclause,
not only when it is a potential join clause (there is a new boolean
field canjoin to signal the latter condition).  This lets us avoid
recomputing the relid sets over and over while examining indexes.
Still more work to do to make this as useful as it could be, because
there are places that could use the info but don't have access to the
RestrictInfo node.

Files