From: Bernd Zeimetz Date: Fri, 2 Sep 2016 12:05:58 +0000 (+0200) Subject: Also fix query_plans_by_table X-Git-Tag: collectd-5.6.1~1^2~3^2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=0b97cf2d91851a6892ff025c6775a59d98a8bada;p=collectd.git Also fix query_plans_by_table #1905 happens here obviously, too. --- diff --git a/src/postgresql_default.conf b/src/postgresql_default.conf index 7ec971a2..0aac41e2 100644 --- a/src/postgresql_default.conf +++ b/src/postgresql_default.conf @@ -207,10 +207,10 @@ Statement "SELECT schemaname, relname, \ - seq_scan AS seq, \ - seq_tup_read AS seq_tup_read, \ - idx_scan AS idx, \ - idx_tup_fetch AS idx_tup_fetch \ + coalesce(seq_scan, 0) AS seq, \ + coalesce(seq_tup_read, 0) AS seq_tup_read, \ + coalesce(idx_scan, 0) AS idx, \ + coalesce(idx_tup_fetch, 0) AS idx_tup_fetch \ FROM pg_stat_user_tables;"