|
8 | 8 | * |
9 | 9 | * |
10 | 10 | * IDENTIFICATION |
11 | | - * $Header: /cvsroot/pgsql/src/backend/optimizer/prep/prepqual.c,v 1.22 2000/01/28 03:22:36 tgl Exp $ |
| 11 | + * $Header: /cvsroot/pgsql/src/backend/optimizer/prep/prepqual.c,v 1.23 2000/02/27 19:45:44 tgl Exp $ |
12 | 12 | * |
13 | 13 | *------------------------------------------------------------------------- |
14 | 14 | */ |
@@ -139,7 +139,8 @@ canonicalize_qual(Expr *qual, bool removeAndFlag) |
139 | 139 | * and only one relation is mentioned, and DNF is no larger than |
140 | 140 | * the CNF representation. (Pretty shaky; can we improve on this?) |
141 | 141 | */ |
142 | | -if (dnfok&&dnfnodes <=cnfnodes&&or_clause((Node*)newqual)&& |
| 142 | +if (cnfok&&dnfok&&dnfnodes <=cnfnodes&& |
| 143 | +or_clause((Node*)newqual)&& |
143 | 144 | NumRelids((Node*)newqual)==1) |
144 | 145 | cnfok= false; |
145 | 146 | /* |
|