Enable GEQO for more than six tables, from Martin.
This commit is contained in:
parent
4d9b4dc973
commit
8bc7439ccf
@ -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 */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user