]> granicus.if.org Git - postgresql/commit
Improve planning of OR indexscan plans: for quals like
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 5 Jun 2001 17:13:52 +0000 (17:13 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 5 Jun 2001 17:13:52 +0000 (17:13 +0000)
commitcdd230d62899455cc07ba1caf68387fb834d5bd2
treec74a0a5342eb883c0265f7caf2993a93e1eff939
parent7c579fa12df0def35192e1e3cfc9ea7ab90bb0cb
Improve planning of OR indexscan plans: for quals like
WHERE (a = 1 or a = 2) and b = 42
and an index on (a,b), include the clause b = 42 in the indexquals
generated for each arm of the OR clause.  Essentially this is an index-
driven conversion from CNF to DNF.  Implementation is a bit klugy, but
better than not exploiting the extra quals at all ...
src/backend/optimizer/path/allpaths.c
src/backend/optimizer/path/indxpath.c
src/backend/optimizer/path/orindxpath.c
src/include/optimizer/paths.h