summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-01-21 23:33:34 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-01-21 23:33:34 +0000
commit672a80702824dafd7dfb6151c6d519dded320032 (patch)
treeefad184a01ee6eed406696f06d6323239c25071e /doc/src
parent4d2e94ef04d32198ed257bbf4f4e45d771a5ed0d (diff)
Repair error apparently introduced in the initial coding of GUC: the
default value for geqo_effort is supposed to be 40, not 1. The actual 'genetic' component of the GEQO algorithm has been practically disabled since 7.1 because of this mistake. Improve documentation while at it.
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/runtime.sgml24
1 files changed, 13 insertions, 11 deletions
diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml
index e464e66878a..f81c920d26d 100644
--- a/doc/src/sgml/runtime.sgml
+++ b/doc/src/sgml/runtime.sgml
@@ -1,5 +1,5 @@
<!--
-$PostgreSQL: pgsql/doc/src/sgml/runtime.sgml,v 1.230 2004/01/10 23:28:43 neilc Exp $
+$PostgreSQL: pgsql/doc/src/sgml/runtime.sgml,v 1.231 2004/01/21 23:33:34 tgl Exp $
-->
<Chapter Id="runtime">
@@ -1404,23 +1404,25 @@ SET ENABLE_SEQSCAN TO OFF;
</varlistentry>
<varlistentry>
- <term><varname>geqo_effort</varname> (<type>integer</type>)</term>
- <term><varname>geqo_generations</varname> (<type>integer</type>)</term>
<term><varname>geqo_pool_size</varname> (<type>integer</type>)</term>
+ <term><varname>geqo_generations</varname> (<type>integer</type>)</term>
+ <term><varname>geqo_effort</varname> (<type>integer</type>)</term>
<term><varname>geqo_selection_bias</varname> (<type>floating point</type>)</term>
<listitem>
<para>
Various tuning parameters for the genetic query optimization
- algorithm: The pool size is the number of individuals in one
+ algorithm. The pool size is the number of individuals in one
population. Valid values are between 128 and 1024. If it is set
to 0 (the default) a pool size of 2^(QS+1), where QS is the
- number of <literal>FROM</> items in the query, is taken. The effort is used
- to calculate a default for generations. Valid values are between
- 1 and 80, 40 being the default. Generations specifies the number
- of iterations in the algorithm. The number must be a positive
- integer. If 0 is specified then <literal>Effort *
- Log2(PoolSize)</literal> is used. The run time of the algorithm
- is roughly proportional to the sum of pool size and generations.
+ number of <literal>FROM</> items in the query, is used.
+ Generations specifies the number of iterations of the algorithm.
+ The value must be a positive integer. If 0 is specified then
+ <literal>Effort * Log2(PoolSize)</literal> is used.
+ The run time of the algorithm is roughly proportional to the sum of
+ pool size and generations.
+ <varname>geqo_effort</varname> is only used in computing the default
+ generations setting, as just described. The default value is 40,
+ and the allowed range 1 to 100.
The selection bias is the selective pressure within the
population. Values can be from 1.50 to 2.00; the latter is the
default.