author | Sebastian Harl <sh@tokkee.org> | |
Sun, 17 Aug 2008 12:11:13 +0000 (14:11 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Tue, 19 Aug 2008 08:12:00 +0000 (10:12 +0200) | ||
commit | 3f0678c1e368e5236a538fb5ea817f5f0adae79a | |
tree | 794760137b36c6b8bfeb1488ccaabb2f4565c4db | tree | snapshot |
parent | 5c49be31adce24c02687a5605b571a540daff739 | commit | diff |
postgresql plugin: Added support for protocol versions less than 3.
Support for passing parameters to a query was added in protocol version 3
which was introduced in version 7.4 of PostgreSQL (later version still support
earlier protocol versions though). If that is not available, we now fall back
to PQexec() if no parameters have been specified. Else, we skip the query and
report an error.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
Support for passing parameters to a query was added in protocol version 3
which was introduced in version 7.4 of PostgreSQL (later version still support
earlier protocol versions though). If that is not available, we now fall back
to PQexec() if no parameters have been specified. Else, we skip the query and
report an error.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/collectd.conf.pod | diff | blob | history | |
src/postgresql.c | diff | blob | history |