diff options
author | Fujii Masao <fujii@postgresql.org> | 2014-08-28 15:55:50 +0900 |
---|---|---|
committer | Fujii Masao <fujii@postgresql.org> | 2014-08-28 15:55:50 +0900 |
commit | e23014f3d40f7d2c23bc97207fd28efbe5ba102b (patch) | |
tree | 2c5120b892ab6407306600ccc59412c2834b28b4 /src/include/access/reloptions.h | |
parent | 8167a3883a3c49f2f77785f8e5f638920c9f14ef (diff) |
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
Diffstat (limited to 'src/include/access/reloptions.h')
-rw-r--r-- | src/include/access/reloptions.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/access/reloptions.h b/src/include/access/reloptions.h index c22644841f9..a54bbd0eaa6 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, |