mirror of
https://github.com/postgres/postgres.git
synced 2025-10-25 13:17:41 +03:00
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
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user