Clean up handling of variable-free qual clauses. System now does the

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

Commit: 37168b8da43d9a6f7471cf757119ece6c96fb2b9
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2000-08-13T02:50:35Z
Releases: 7.1.1
Clean up handling of variable-free qual clauses.  System now does the
right thing with variable-free clauses that contain noncachable functions,
such as 'WHERE random() < 0.5' --- these are evaluated once per
potential output tuple.  Expressions that contain only Params are
now candidates to be indexscan quals --- for example, 'var = ($1 + 1)'
can now be indexed.  Cope with RelabelType nodes atop potential indexscan
variables --- this oversight prevents 7.0.* from recognizing some
potentially indexscanable situations.

Files