1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-12 21:01:52 +03:00

Add missing min/max parameters to DefineCustomIntVariable() and

DefineCustomRealVariable().  Thomas Hallgren
This commit is contained in:
Tom Lane
2005-03-25 16:17:28 +00:00
parent 6e26c00297
commit 519cef22bf
2 changed files with 14 additions and 2 deletions

View File

@ -10,7 +10,7 @@
* Written by Peter Eisentraut <peter_e@gmx.net>.
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.256 2005/03/19 23:27:07 tgl Exp $
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.257 2005/03/25 16:17:27 tgl Exp $
*
*--------------------------------------------------------------------
*/
@ -4187,6 +4187,8 @@ DefineCustomIntVariable(
const char *short_desc,
const char *long_desc,
int *valueAddr,
int minValue,
int maxValue,
GucContext context,
GucIntAssignHook assign_hook,
GucShowHook show_hook)
@ -4199,6 +4201,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);
@ -4210,6 +4214,8 @@ DefineCustomRealVariable(
const char *short_desc,
const char *long_desc,
double *valueAddr,
double minValue,
double maxValue,
GucContext context,
GucRealAssignHook assign_hook,
GucShowHook show_hook)
@ -4222,6 +4228,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);