|
7 | 7 | *
|
8 | 8 | *
|
9 | 9 | * IDENTIFICATION
|
10 |
| - * $Header: /cvsroot/pgsql/src/backend/optimizer/path/allpaths.c,v 1.5 1997/02/19 12:58:01 scrappy Exp $ |
| 10 | + * $Header: /cvsroot/pgsql/src/backend/optimizer/path/allpaths.c,v 1.6 1997/04/29 04:37:22 vadim Exp $ |
11 | 11 | *
|
12 | 12 | *-------------------------------------------------------------------------
|
13 | 13 | */
|
|
33 | 33 | #include"optimizer/geqo_gene.h"
|
34 | 34 | #include"optimizer/geqo.h"
|
35 | 35 |
|
| 36 | +#ifdefGEQO |
| 37 | +bool_use_geqo_= true; |
| 38 | +#else |
| 39 | +bool_use_geqo_= false; |
| 40 | +#endif |
| 41 | + |
| 42 | + |
36 | 43 | staticvoidfind_rel_paths(Query*root,List*rels);
|
37 | 44 | staticList*find_join_paths(Query*root,List*outer_rels,intlevels_left);
|
38 | 45 |
|
@@ -166,10 +173,9 @@ find_join_paths(Query *root, List *outer_rels, int levels_left)
|
166 | 173 | * <utesch@aut.tu-freiberg.de> *
|
167 | 174 | *******************************************/
|
168 | 175 |
|
169 |
| -#ifdefGEQO |
170 |
| -returnlcons(geqo(root),NIL);/* returns *one* Rel, so lcons it */ |
171 |
| -#endif |
172 |
| - |
| 176 | +if (_use_geqo_ ) |
| 177 | +returnlcons(geqo(root),NIL);/* returns *one* Rel, so lcons it */ |
| 178 | + |
173 | 179 | /*******************************************
|
174 | 180 | * rest will be deprecated in case of GEQO *
|
175 | 181 | *******************************************/
|
|