X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fpostgresql_default.conf;h=5b024ca14aca2976a4ef99e9c183a390a8891210;hb=eafb8003851eaea28dfe90b094fbd6be28a38c92;hp=61844a024aa648def479fcf3171c00c29d745d0e;hpb=074b4980bc75bea6826e6a38dcc6e193a721b2a8;p=collectd.git diff --git a/src/postgresql_default.conf b/src/postgresql_default.conf index 61844a02..5b024ca1 100644 --- a/src/postgresql_default.conf +++ b/src/postgresql_default.conf @@ -67,10 +67,14 @@ - Query "SELECT sum(heap_blks_read), sum(heap_blks_hit), \ - sum(idx_blks_read), sum(idx_blks_hit), \ - sum(toast_blks_read), sum(toast_blks_hit), \ - sum(tidx_blks_read), sum(tidx_blks_hit) \ + Query "SELECT coalesce(sum(heap_blks_read), 0), \ + coalesce(sum(heap_blks_hit), 0), \ + coalesce(sum(idx_blks_read), 0), \ + coalesce(sum(idx_blks_hit), 0), \ + coalesce(sum(toast_blks_read), 0), \ + coalesce(sum(toast_blks_hit), 0), \ + coalesce(sum(tidx_blks_read), 0), \ + coalesce(sum(tidx_blks_hit), 0) \ FROM pg_statio_user_tables;" Column pg_blks heap_read @@ -91,3 +95,5 @@ Column pg_db_size +# vim: set ft=config : +