diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2008-05-02 21:26:10 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2008-05-02 21:26:10 +0000 |
commit | db147b348345288c7b47f9527fc107a9bb063ad7 (patch) | |
tree | 949161223fb81a312fca83c9f9691b9b3cbbdb26 /src/backend/utils/misc/guc.c | |
parent | cf9f6c8d8e9df28f3fbe1850ca7f042b2c01252e (diff) | |
download | postgresql-db147b348345288c7b47f9527fc107a9bb063ad7.tar.gz postgresql-db147b348345288c7b47f9527fc107a9bb063ad7.zip |
Allow the planner's estimate of the fraction of a cursor's rows that will be
retrieved to be controlled through a GUC variable.
Robert Hell
Diffstat (limited to 'src/backend/utils/misc/guc.c')
-rw-r--r-- | src/backend/utils/misc/guc.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index 58b1a469acf..993cf971a93 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -10,7 +10,7 @@ * Written by Peter Eisentraut <peter_e@gmx.net>. * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.450 2008/05/01 19:55:40 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.451 2008/05/02 21:26:10 tgl Exp $ * *-------------------------------------------------------------------- */ @@ -1892,6 +1892,16 @@ static struct config_real ConfigureNamesReal[] = }, { + {"cursor_tuple_fraction", PGC_USERSET, QUERY_TUNING_OTHER, + gettext_noop("Sets the planner's estimate of the fraction of " + "a cursor's rows that will be retrieved."), + NULL + }, + &cursor_tuple_fraction, + DEFAULT_CURSOR_TUPLE_FRACTION, 0.0, 1.0, NULL, NULL + }, + + { {"geqo_selection_bias", PGC_USERSET, QUERY_TUNING_GEQO, gettext_noop("GEQO: selective pressure within the population."), NULL |