OSDN Git Service

First cut at doing something reasonable with OR-of-ANDs WHERE
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 13 Sep 1999 00:17:25 +0000 (00:17 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 13 Sep 1999 00:17:25 +0000 (00:17 +0000)
commit43d32d368378e061d29f7ece94fb4a453ae6be63
tree6cd19d8a9a3e45f21652bf3d95e833ddb52dc3c8
parentb705fa390918e951af5d9e5cc165e79ca85e520d
First cut at doing something reasonable with OR-of-ANDs WHERE
conditions.  There are some pretty bogus heuristics in prepqual.c that
try to decide whether to output CNF or DNF format; they need to be replaced,
likely.  Right now the code is probably too willing to choose DNF form,
which might hurt performance in some cases that used to work OK.
But at least we have a foundation to build on.
src/backend/optimizer/path/indxpath.c
src/backend/optimizer/plan/planmain.c
src/backend/optimizer/plan/planner.c
src/backend/optimizer/prep/prepqual.c
src/include/optimizer/prep.h