X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fpostgresql_default.conf;h=83a32c77b3fd7b1883c82de65cb1b60e1acbdc45;hb=3b4201d2235c25ed21174c41c526c9b7894de539;hp=9827b982162a7e6da782658fc43b31b9fcbf0920;hpb=0b350ce8049e8c5db34751340e015c7a7937664e;p=collectd.git diff --git a/src/postgresql_default.conf b/src/postgresql_default.conf index 9827b982..83a32c77 100644 --- a/src/postgresql_default.conf +++ b/src/postgresql_default.conf @@ -1,4 +1,9 @@ # Pre-defined queries of collectd's postgresql plugin. +# +# Do not edit this file. If you want to change any of the query definitions, +# overwrite them in collectd.conf instead. +# +# This file is distributed under the same terms as collectd itself. Statement "SELECT count(*) AS count \ @@ -54,7 +59,7 @@ ValuesFrom "del" - MaxPGVersion 80299 + MaxVersion 80299 @@ -85,7 +90,7 @@ ValuesFrom "hot_upd" - MinPGVersion 80300 + MinVersion 80300 @@ -132,18 +137,18 @@ ValuesFrom "dead" - MinPGVersion 80300 + MinVersion 80300 - 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;"