X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fpostgresql_default.conf;fp=src%2Fpostgresql_default.conf;h=83a32c77b3fd7b1883c82de65cb1b60e1acbdc45;hp=d289ded5d8fe21bd02a735a28946f075c8b48509;hb=6d86a97190a193863aadc252f20f6b9dba61c263;hpb=49cf50f058fc3a7322899b4eca4223dd71bc605a diff --git a/src/postgresql_default.conf b/src/postgresql_default.conf index d289ded5..83a32c77 100644 --- a/src/postgresql_default.conf +++ b/src/postgresql_default.conf @@ -141,14 +141,14 @@ - Statement "SELECT sum(heap_blks_read) AS heap_read, \ - sum(heap_blks_hit) AS heap_hit, \ - sum(idx_blks_read) AS idx_read, \ - sum(idx_blks_hit) AS idx_hit, \ - sum(toast_blks_read) AS toast_read, \ - sum(toast_blks_hit) AS toast_hit, \ - sum(tidx_blks_read) AS tidx_read, \ - sum(tidx_blks_hit) AS tidx_hit \ + Statement "SELECT coalesce(sum(heap_blks_read), 0) AS heap_read, \ + coalesce(sum(heap_blks_hit), 0) AS heap_hit, \ + coalesce(sum(idx_blks_read), 0) AS idx_read, \ + coalesce(sum(idx_blks_hit), 0) AS idx_hit, \ + coalesce(sum(toast_blks_read), 0) AS toast_read, \ + coalesce(sum(toast_blks_hit), 0) AS toast_hit, \ + coalesce(sum(tidx_blks_read), 0) AS tidx_read, \ + coalesce(sum(tidx_blks_hit), 0) AS tidx_hit \ FROM pg_statio_user_tables;"