]> granicus.if.org Git - postgresql/commitdiff
Reduce default GEQO 'effort' setting to MEDIUM always.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 22 May 1999 23:27:19 +0000 (23:27 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 22 May 1999 23:27:19 +0000 (23:27 +0000)
This agrees with the documentation and seems like a more useful default
anyhow ...

src/backend/optimizer/geqo/geqo_params.c

index d2a4ab56d9106311b89d6e8ac550b4b3ff3611de..fb4356c30f1ebb9f599ab8a18d773acc0944abcf 100644 (file)
@@ -5,7 +5,7 @@
 *
 * Copyright (c) 1994, Regents of the University of California
 *
-* $Id: geqo_params.c,v 1.16 1999/05/22 19:29:01 tgl Exp $
+* $Id: geqo_params.c,v 1.17 1999/05/22 23:27:19 tgl Exp $
 *
 *-------------------------------------------------------------------------
 */
@@ -240,10 +240,7 @@ geqo_params(int string_length)
        /**************** Effort: essential ****************/
        if (!(effort))
        {
-               if (PoolSize == MAX_POOL)
-                       effort = HIGH_EFFORT;
-               else
-                       effort = MEDIUM_EFFORT;
+               effort = MEDIUM_EFFORT;
 
                elog(DEBUG, "geqo_params: no optimization effort specified;\nusing value of %d", effort);