Modify planner's implied-equality-deduction code so that when a set

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

Commit: f5e83662d06a40f90ceb3516fc88674eb6c1e4f9
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2003-01-24T03:58:44Z
Releases: 7.4.1
Modify planner's implied-equality-deduction code so that when a set
of known-equal expressions includes any constant expressions (including
Params from outer queries), we actively suppress any 'var = var'
clauses that are or could be deduced from the set, generating only the
deducible 'var = const' clauses instead.  The idea here is to push down
the restrictions implied by the equality set to base relations whenever
possible.  Once we have applied the 'var = const' clauses, the 'var = var'
clauses are redundant, and should be suppressed both to save work at
execution and to avoid double-counting restrictivity.

Files