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~32 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9f67af1913d2d3539cb892890fd121f8a16d46a9;p=thirdparty%2Fcollectd.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 decf39f5e..61844a024 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