• Tom Lane's avatar
    Rewrite OR indexscan processing to be more flexible. We can now for the · 6cb1c023
    Tom Lane authored
    first time generate an OR indexscan for a two-column index when the WHERE
    condition is like 'col1 = foo AND (col2 = bar OR col2 = baz)' --- before,
    the OR had to be on the first column of the index or we'd not notice the
    possibility of using it.  Some progress towards extracting OR indexscans
    from subclauses of an OR that references multiple relations, too, although
    this code is #ifdef'd out because it needs more work.
    6cb1c023
orindxpath.c 8.22 KB