Commit a4792bd3 authored by Vadim B. Mikheev's avatar Vadim B. Mikheev

#ifdef GEQO

bool _use_geqo_ = true;
#else
bool _use_geqo_ = false;
#endif

_use_geqo_ is settable via SET var TO ...
parent a1fbd470
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/allpaths.c,v 1.5 1997/02/19 12:58:01 scrappy Exp $ * $Header: /cvsroot/pgsql/src/backend/optimizer/path/allpaths.c,v 1.6 1997/04/29 04:37:22 vadim Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -33,6 +33,13 @@ ...@@ -33,6 +33,13 @@
#include "optimizer/geqo_gene.h" #include "optimizer/geqo_gene.h"
#include "optimizer/geqo.h" #include "optimizer/geqo.h"
#ifdef GEQO
bool _use_geqo_ = true;
#else
bool _use_geqo_ = false;
#endif
static void find_rel_paths(Query *root, List *rels); static void find_rel_paths(Query *root, List *rels);
static List *find_join_paths(Query *root, List *outer_rels, int levels_left); static List *find_join_paths(Query *root, List *outer_rels, int levels_left);
...@@ -166,10 +173,9 @@ find_join_paths(Query *root, List *outer_rels, int levels_left) ...@@ -166,10 +173,9 @@ find_join_paths(Query *root, List *outer_rels, int levels_left)
* <utesch@aut.tu-freiberg.de> * * <utesch@aut.tu-freiberg.de> *
*******************************************/ *******************************************/
#ifdef GEQO if ( _use_geqo_ )
return lcons(geqo(root), NIL); /* returns *one* Rel, so lcons it */ return lcons(geqo(root), NIL); /* returns *one* Rel, so lcons it */
#endif
/******************************************* /*******************************************
* rest will be deprecated in case of GEQO * * rest will be deprecated in case of GEQO *
*******************************************/ *******************************************/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment