Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b2f14e1

Browse files
committed
Reduce default GEQO 'effort' setting to MEDIUM always.
This agrees with the documentation and seems like a more useful default anyhow ...
1 parent d52a91a commit b2f14e1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/backend/optimizer/geqo/geqo_params.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* Copyright (c) 1994, Regents of the University of California
77
*
8-
* $Id: geqo_params.c,v 1.16 1999/05/22 19:29:01 tgl Exp $
8+
* $Id: geqo_params.c,v 1.17 1999/05/22 23:27:19 tgl Exp $
99
*
1010
*-------------------------------------------------------------------------
1111
*/
@@ -240,10 +240,7 @@ geqo_params(int string_length)
240240
/**************** Effort: essential ****************/
241241
if (!(effort))
242242
{
243-
if (PoolSize == MAX_POOL)
244-
effort = HIGH_EFFORT;
245-
else
246-
effort = MEDIUM_EFFORT;
243+
effort = MEDIUM_EFFORT;
247244

248245
elog(DEBUG, "geqo_params: no optimization effort specified;\nusing value of %d", effort);
249246

0 commit comments

Comments
 (0)