Skip to content
Snippets Groups Projects
Commit 8bc7439c authored by Bruce Momjian's avatar Bruce Momjian
Browse files

Enable GEQO for more than six tables, from Martin.

parent 4d9b4dc9
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/allpaths.c,v 1.6 1997/04/29 04:37:22 vadim Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/allpaths.c,v 1.7 1997/06/01 02:55:44 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -173,7 +173,7 @@ find_join_paths(Query *root, List *outer_rels, int levels_left)
* <utesch@aut.tu-freiberg.de> *
*******************************************/
if ( _use_geqo_ )
if ( (_use_geqo_) || length(root->base_relation_list_) >= GEQO_RELS )
return lcons(geqo(root), NIL); /* returns *one* Rel, so lcons it */
/*******************************************
......
......@@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: geqo.h,v 1.1 1997/02/19 12:58:28 scrappy Exp $
* $Id: geqo.h,v 1.2 1997/06/01 02:56:00 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -38,6 +38,8 @@
*/
#define ERX
/* GEQO switch according to number of relations in a query */
#define GEQO_RELS 7
/* genetic algorithm parameters */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment