diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 1999-09-13 00:17:25 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 1999-09-13 00:17:25 +0000 |
| commit | 43d32d368378e061d29f7ece94fb4a453ae6be63 (patch) | |
| tree | 6cd19d8a9a3e45f21652bf3d95e833ddb52dc3c8 /src/include/optimizer/prep.h | |
| parent | b705fa390918e951af5d9e5cc165e79ca85e520d (diff) | |
| download | postgresql-43d32d368378e061d29f7ece94fb4a453ae6be63.tar.gz | |
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.
Diffstat (limited to 'src/include/optimizer/prep.h')
| -rw-r--r-- | src/include/optimizer/prep.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/optimizer/prep.h b/src/include/optimizer/prep.h index 161419f29d..66da07f51d 100644 --- a/src/include/optimizer/prep.h +++ b/src/include/optimizer/prep.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: prep.h,v 1.18 1999/09/12 18:08:10 tgl Exp $ + * $Id: prep.h,v 1.19 1999/09/13 00:17:08 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -19,6 +19,7 @@ /* * prototypes for prepqual.c */ +extern List *canonicalize_qual(Expr *qual, bool removeAndFlag); extern List *cnfify(Expr *qual, bool removeAndFlag); extern Expr *dnfify(Expr *qual); |
