mirror of
https://github.com/postgres/postgres.git
synced 2025-10-27 00:12:01 +03:00
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.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/include/optimizer/geqo.h,v 1.33 2003/11/29 22:41:07 pgsql Exp $
|
||||
* $PostgreSQL: pgsql/src/include/optimizer/geqo.h,v 1.34 2004/01/21 23:33:34 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -44,22 +44,27 @@
|
||||
|
||||
/*
|
||||
* Configuration options
|
||||
*
|
||||
* If you change these, update backend/utils/misc/postgresql.sample.conf
|
||||
*/
|
||||
/* If you change these, update backend/utils/misc/postgresql.sample.conf */
|
||||
extern int Geqo_pool_size;
|
||||
|
||||
#define DEFAULT_GEQO_POOL_SIZE 0 /* = default based on no. of relations. */
|
||||
#define MIN_GEQO_POOL_SIZE 128
|
||||
#define MAX_GEQO_POOL_SIZE 1024
|
||||
|
||||
extern int Geqo_effort; /* 1 .. inf, only used to calculate
|
||||
* generations default */
|
||||
extern int Geqo_generations; /* 1 .. inf, or 0 to use default based on
|
||||
* pool size */
|
||||
|
||||
extern int Geqo_effort; /* only used to calculate default for
|
||||
* generations */
|
||||
|
||||
#define DEFAULT_GEQO_EFFORT 40
|
||||
#define MIN_GEQO_EFFORT 1
|
||||
#define MAX_GEQO_EFFORT 100
|
||||
|
||||
extern double Geqo_selection_bias;
|
||||
|
||||
/* If you change these, update backend/utils/misc/postgresql.sample.conf */
|
||||
#define DEFAULT_GEQO_SELECTION_BIAS 2.0
|
||||
#define MIN_GEQO_SELECTION_BIAS 1.5
|
||||
#define MAX_GEQO_SELECTION_BIAS 2.0
|
||||
|
||||
Reference in New Issue
Block a user