Further improvements in cnfify: reduce amount of self-recursion

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 2119cc0670c90f0c857137d1ca37c99997e31290
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 1999-09-12T18:08:17Z
Releases: 7.1.1
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

PathChange+/−
src/backend/optimizer/prep/prepqual.c modified +381 −332
src/include/optimizer/prep.h modified +3 −2