diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-03-25 16:17:39 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-03-25 16:17:39 +0000 |
commit | f87592fce7ebf14dff9be24141f360f2129f9292 (patch) | |
tree | 350e6f47ce8da343fadbdd2cce9fc6b49b9f724d /src/backend/utils/misc/guc.c | |
parent | 88f07b183f1dac4eb456af7f995d64febaf3c1d7 (diff) | |
download | postgresql-f87592fce7ebf14dff9be24141f360f2129f9292.tar.gz postgresql-f87592fce7ebf14dff9be24141f360f2129f9292.zip |
Add missing min/max parameters to DefineCustomIntVariable() and
DefineCustomRealVariable(). Thomas Hallgren
Diffstat (limited to 'src/backend/utils/misc/guc.c')
-rw-r--r-- | src/backend/utils/misc/guc.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index 053bd2af3f9..9038f660476 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.252 2005/01/01 05:43:08 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.252.4.1 2005/03/25 16:17:38 tgl Exp $ * *-------------------------------------------------------------------- */ @@ -4168,6 +4168,8 @@ DefineCustomIntVariable( const char *short_desc, const char *long_desc, int *valueAddr, + int minValue, + int maxValue, GucContext context, GucIntAssignHook assign_hook, GucShowHook show_hook) @@ -4180,6 +4182,8 @@ DefineCustomIntVariable( var->variable = valueAddr; var->reset_val = *valueAddr; + var->min = minValue; + var->max = maxValue; var->assign_hook = assign_hook; var->show_hook = show_hook; define_custom_variable(&var->gen); @@ -4191,6 +4195,8 @@ DefineCustomRealVariable( const char *short_desc, const char *long_desc, double *valueAddr, + double minValue, + double maxValue, GucContext context, GucRealAssignHook assign_hook, GucShowHook show_hook) @@ -4203,6 +4209,8 @@ DefineCustomRealVariable( var->variable = valueAddr; var->reset_val = *valueAddr; + var->min = minValue; + var->max = maxValue; var->assign_hook = assign_hook; var->show_hook = show_hook; define_custom_variable(&var->gen); |