|
7 | 7 | *
|
8 | 8 | *
|
9 | 9 | * IDENTIFICATION
|
10 |
| - * $Header: /cvsroot/pgsql/src/backend/optimizer/path/allpaths.c,v 1.7 1997/06/01 02:55:44 momjian Exp $ |
| 10 | + * $Header: /cvsroot/pgsql/src/backend/optimizer/path/allpaths.c,v 1.8 1997/06/02 11:14:40 vadim Exp $ |
11 | 11 | *
|
12 | 12 | *-------------------------------------------------------------------------
|
13 | 13 | */
|
@@ -38,6 +38,7 @@ bool _use_geqo_ = true;
|
38 | 38 | #else
|
39 | 39 | bool_use_geqo_= false;
|
40 | 40 | #endif
|
| 41 | +int32_use_geqo_rels_=GEQO_RELS; |
41 | 42 |
|
42 | 43 |
|
43 | 44 | staticvoidfind_rel_paths(Query*root,List*rels);
|
@@ -173,7 +174,7 @@ find_join_paths(Query *root, List *outer_rels, int levels_left)
|
173 | 174 | * <utesch@aut.tu-freiberg.de> *
|
174 | 175 | *******************************************/
|
175 | 176 |
|
176 |
| -if ( (_use_geqo_)||length(root->base_relation_list_) >=GEQO_RELS ) |
| 177 | +if ( (_use_geqo_)&&length(root->base_relation_list_) >=_use_geqo_rels_ ) |
177 | 178 | returnlcons(geqo(root),NIL);/* returns *one* Rel, so lcons it */
|
178 | 179 |
|
179 | 180 | /*******************************************
|
|