提交 8bc7439c 编写于 作者: B Bruce Momjian

Enable GEQO for more than six tables, from Martin.

上级 4d9b4dc9
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册