From 372705b865504ff06349eb8fa953a60cfe6e59dc Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Thu, 29 Jan 2009 17:17:55 +0100 Subject: [PATCH] postgresql plugin: Renamed the "Query" config option to "Statement". This makes slightly more sense and is more consistent with the dbi and oracle plugins. --- src/collectd.conf.pod | 15 ++++++++++----- src/postgresql.c | 29 +++++++++++++++++------------ src/postgresql_default.conf | 16 ++++++++-------- 3 files changed, 35 insertions(+), 25 deletions(-) diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod index 113bedde..f91a2329 100644 --- a/src/collectd.conf.pod +++ b/src/collectd.conf.pod @@ -1553,7 +1553,7 @@ L. - Query "SELECT magic, spells FROM wizard WHERE host = $1;" + Statement "SELECT magic, spells FROM wizard WHERE host = $1;" Param hostname Column gauge magic Column counter spells @@ -1580,11 +1580,11 @@ following configuration options are available to define the query: =over 4 -=item B I +=item B I -Specify the I which the plugin should execute. The string may -contain the tokens B<$1>, B<$2>, etc. which are used to reference the first, -second, etc. parameter. The value of the parameters is specified by the +Specify the I which the plugin should execute. The string +may contain the tokens B<$1>, B<$2>, etc. which are used to reference the +first, second, etc. parameter. The value of the parameters is specified by the B configuration option - see below for details. To include a literal B<$> character followed by a number, surround it with single quotes (B<'>). @@ -1592,6 +1592,11 @@ Any SQL command which may return data (such as C