From: Sebastian Harl Date: Tue, 26 Aug 2008 14:11:26 +0000 (+0200) Subject: postgresql_default.conf: Split "queries" query into two versions. X-Git-Tag: collectd-4.5.0~30 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9f67af1913d2d3539cb892890fd121f8a16d46a9;p=collectd.git postgresql_default.conf: Split "queries" query into two versions. The "n_tup_hot_upd" column has been added in 8.3. The two versions of the "queries" query now take that into account by defining different SQL queries for versions up to 8.2.99 and versions starting with 8.3. Signed-off-by: Sebastian Harl Signed-off-by: Florian Forster --- diff --git a/src/postgresql_default.conf b/src/postgresql_default.conf index decf39f5..61844a02 100644 --- a/src/postgresql_default.conf +++ b/src/postgresql_default.conf @@ -21,6 +21,17 @@ Column pg_xact rollback + + Query "SELECT sum(n_tup_ins), sum(n_tup_upd), sum(n_tup_del) \ + FROM pg_stat_user_tables;" + + Column pg_n_tup_c ins + Column pg_n_tup_c upd + Column pg_n_tup_c del + + MaxPGVersion 80299 + + Query "SELECT sum(n_tup_ins), sum(n_tup_upd), sum(n_tup_del), \ sum(n_tup_hot_upd) \ @@ -30,6 +41,8 @@ Column pg_n_tup_c upd Column pg_n_tup_c del Column pg_n_tup_c hot_upd + + MinPGVersion 80300