From e23014f3d40f7d2c23bc97207fd28efbe5ba102b Mon Sep 17 00:00:00 2001 From: Fujii Masao Date: Thu, 28 Aug 2014 15:55:50 +0900 Subject: Allow units to be specified in relation option setting value. This introduces an infrastructure which allows us to specify the units like ms (milliseconds) in integer relation option, like GUC parameter. Currently only autovacuum_vacuum_cost_delay reloption can accept the units. Reviewed by Michael Paquier --- src/include/access/reloptions.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/access/reloptions.h b/src/include/access/reloptions.h index c22644841f..a54bbd0eaa 100644 --- a/src/include/access/reloptions.h +++ b/src/include/access/reloptions.h @@ -92,6 +92,7 @@ typedef struct relopt_int int default_val; int min; int max; + int flags; } relopt_int; typedef struct relopt_real @@ -244,7 +245,7 @@ extern relopt_kind add_reloption_kind(void); extern void add_bool_reloption(bits32 kinds, char *name, char *desc, bool default_val); extern void add_int_reloption(bits32 kinds, char *name, char *desc, - int default_val, int min_val, int max_val); + int default_val, int min_val, int max_val, int flags_val); extern void add_real_reloption(bits32 kinds, char *name, char *desc, double default_val, double min_val, double max_val); extern void add_string_reloption(bits32 kinds, char *name, char *desc, -- cgit v1.2.3