diff options
| author | Alvaro Herrera | 2015-04-03 14:55:50 +0000 |
|---|---|---|
| committer | Alvaro Herrera | 2015-04-03 14:55:50 +0000 |
| commit | 4ff695b17d32a9c330952192dbc789d31a5e2f5e (patch) | |
| tree | 1e83f651e13c90928d0ba9337b0c15aa69773ed1 /src/include/commands | |
| parent | a75fb9b335db0e063ece283ebd207530abe1b53b (diff) | |
Add log_min_autovacuum_duration per-table option
This is useful to control autovacuum log volume, for situations where
monitoring only a set of tables is necessary.
Author: Michael Paquier
Reviewed by: A team led by Naoya Anzai (also including Akira Kurosawa,
Taiki Kondo, Huong Dangminh), Fujii Masao.
Diffstat (limited to 'src/include/commands')
| -rw-r--r-- | src/include/commands/vacuum.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/commands/vacuum.h b/src/include/commands/vacuum.h index 9fd2516923..71f016552b 100644 --- a/src/include/commands/vacuum.h +++ b/src/include/commands/vacuum.h @@ -142,6 +142,9 @@ typedef struct VacuumParams int multixact_freeze_table_age; /* multixact age at which to * scan whole table */ bool is_wraparound; /* force a for-wraparound vacuum */ + int log_min_duration; /* minimum execution threshold in ms at + * which verbose logs are activated, + * -1 to use default */ } VacuumParams; /* GUC parameters */ @@ -191,7 +194,7 @@ extern void lazy_vacuum_rel(Relation onerel, int options, /* in commands/analyze.c */ extern void analyze_rel(Oid relid, RangeVar *relation, int options, - List *va_cols, bool in_outer_xact, + VacuumParams *params, List *va_cols, bool in_outer_xact, BufferAccessStrategy bstrategy); extern bool std_typanalyze(VacAttrStats *stats); extern double anl_random_fract(void); |
