Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0540456

Browse files
committed
Use GEQO if _use_geqo_ is TRUE and # of relations is >= _use_geqo_rels_
(both are settable via SET geqo TO ...).
1 parentcda886f commit0540456

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/backend/optimizer/path/allpaths.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/allpaths.c,v 1.7 1997/06/01 02:55:44 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/allpaths.c,v 1.8 1997/06/02 11:14:40 vadim Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -38,6 +38,7 @@ bool _use_geqo_ = true;
3838
#else
3939
bool_use_geqo_= false;
4040
#endif
41+
int32_use_geqo_rels_=GEQO_RELS;
4142

4243

4344
staticvoidfind_rel_paths(Query*root,List*rels);
@@ -173,7 +174,7 @@ find_join_paths(Query *root, List *outer_rels, int levels_left)
173174
* <utesch@aut.tu-freiberg.de> *
174175
*******************************************/
175176

176-
if ( (_use_geqo_)||length(root->base_relation_list_) >=GEQO_RELS )
177+
if ( (_use_geqo_)&&length(root->base_relation_list_) >=_use_geqo_rels_ )
177178
returnlcons(geqo(root),NIL);/* returns *one* Rel, so lcons it */
178179

179180
/*******************************************

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp