diff options
Diffstat (limited to 'src/backend/optimizer/path/allpaths.c')
-rw-r--r-- | src/backend/optimizer/path/allpaths.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/backend/optimizer/path/allpaths.c b/src/backend/optimizer/path/allpaths.c index dd0083edfb0..920820302c3 100644 --- a/src/backend/optimizer/path/allpaths.c +++ b/src/backend/optimizer/path/allpaths.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/optimizer/path/allpaths.c,v 1.4 1996/11/10 03:00:55 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/optimizer/path/allpaths.c,v 1.5 1997/02/19 12:58:01 scrappy Exp $ * *------------------------------------------------------------------------- */ @@ -30,6 +30,9 @@ #include "commands/creatinh.h" +#include "optimizer/geqo_gene.h" +#include "optimizer/geqo.h" + static void find_rel_paths(Query *root, List *rels); static List *find_join_paths(Query *root, List *outer_rels, int levels_left); @@ -158,6 +161,19 @@ find_join_paths(Query *root, List *outer_rels, int levels_left) List *new_rels; Rel *rel; + /******************************************* + * genetic query optimizer entry point * + * <utesch@aut.tu-freiberg.de> * + *******************************************/ + +#ifdef GEQO + return lcons(geqo(root), NIL); /* returns *one* Rel, so lcons it */ +#endif + + /******************************************* + * rest will be deprecated in case of GEQO * + *******************************************/ + /* * Determine all possible pairs of relations to be joined at this level. * Determine paths for joining these relation pairs and modify 'new-rels' |