mirror of
https://github.com/postgres/postgres.git
synced 2025-10-27 00:12:01 +03:00
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.
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* 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
|
||||
|
||||
Reference in New Issue
Block a user