Add missing min/max parameters to DefineCustomIntVariable() and
DefineCustomRealVariable(). Thomas Hallgren
This commit is contained in:
parent
6e26c00297
commit
519cef22bf
@ -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);
|
||||
|
@ -7,7 +7,7 @@
|
||||
* Copyright (c) 2000-2005, PostgreSQL Global Development Group
|
||||
* Written by Peter Eisentraut <peter_e@gmx.net>.
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/include/utils/guc.h,v 1.59 2005/03/19 23:27:11 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/include/utils/guc.h,v 1.60 2005/03/25 16:17:28 tgl Exp $
|
||||
*--------------------------------------------------------------------
|
||||
*/
|
||||
#ifndef GUC_H
|
||||
@ -151,6 +151,8 @@ extern void DefineCustomIntVariable(
|
||||
const char *short_desc,
|
||||
const char *long_desc,
|
||||
int *valueAddr,
|
||||
int minValue,
|
||||
int maxValue,
|
||||
GucContext context,
|
||||
GucIntAssignHook assign_hook,
|
||||
GucShowHook show_hook);
|
||||
@ -160,6 +162,8 @@ extern void DefineCustomRealVariable(
|
||||
const char *short_desc,
|
||||
const char *long_desc,
|
||||
double *valueAddr,
|
||||
double minValue,
|
||||
double maxValue,
|
||||
GucContext context,
|
||||
GucRealAssignHook assign_hook,
|
||||
GucShowHook show_hook);
|
||||
|
Loading…
x
Reference in New Issue
Block a user