• Tom Lane's avatar
    Clean up handling of variable-free qual clauses. System now does the · 37168b8d
    Tom Lane authored
    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.
    37168b8d
lsyscache.c 15.8 KB