From 4ff695b17d32a9c330952192dbc789d31a5e2f5e Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Fri, 3 Apr 2015 11:55:50 -0300 Subject: 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. --- src/include/commands/vacuum.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/include/commands') 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); -- cgit v1.2.3