Further improvements in cnfify: reduce amount of self-recursion
Tom Lane <tgl@sss.pgh.pa.us>
Further improvements in cnfify: reduce amount of self-recursion in or_normalize, remove detection of duplicate subexpressions (since it's highly unlikely to be worth the amount of time it takes), and introduce a dnfify() entry point so that unintelligible backwards logic in UNION processing can be eliminated. This is just an intermediate step --- next thing is to look at not forcing the qual into CNF form when it would be better off in DNF form.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/optimizer/prep/prepqual.c | modified | +381 −332 |
| src/include/optimizer/prep.h | modified | +3 −2 |