PostgreSQL plugin vacuum / analyze warns on empty tables

The PostgreSQL plugin warns on empty tables, as it seems the vacuum / analyse checks are just based on age and does not take table stats into account.
It makes no sense IMHO to warn when table is empty, or better: when pg_stat_all_tables.n_tup_ins, pg_stat_all_tables.n_tup_del and pg_stat_all_tables.n_tup_upd are 0.

autovacuum is configurable in postgresql.conf by many parameters, so I’m wondering what this check is all about for now without checking the configuration and table stats.

Our DBAs disabled this intentionally

1 Like