Commit 2119cc06 authored by Tom Lane's avatar Tom Lane

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.
parent 4644fc80
This diff is collapsed.
/*-------------------------------------------------------------------------
*
* prep.h
* prototypes for files in prep.c
* prototypes for files in optimizer/prep/
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: prep.h,v 1.17 1999/07/16 17:07:34 momjian Exp $
* $Id: prep.h,v 1.18 1999/09/12 18:08:10 tgl Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -20,6 +20,7 @@
* prototypes for prepqual.c
*/
extern List *cnfify(Expr *qual, bool removeAndFlag);
extern Expr *dnfify(Expr *qual);
/*
* prototypes for preptlist.c
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment