[check_postgres] oldest postgresql support
Cédric Villemain
cedric.villemain.debian at gmail.com
Sun Jan 22 23:15:15 UTC 2012
Hi,
I have a little fix for postgresql < 8.1 "make test"....I wonder if
keeping support for those old PostgreSQL is really needed. (if yes I
go and push that)
--- a/t/CP_Testing.pm
+++ b/t/CP_Testing.pm
@@ -249,7 +249,7 @@ sub test_database_handle {
$SQL = qq{SELECT * FROM pg_language WHERE lanname = '$lang'};
$res = qx{psql -Ax -qt -d postgres -q -h "$host" -c "$SQL"};
if ($res !~ /$lang/) {
- my $createlang = $ENV{PGBINDIR} ?
"$ENV{PGBINDIR}/createlang" : 'pg_ctl';
+ my $createlang = $ENV{PGBINDIR} ?
"$ENV{PGBINDIR}/createlang" : 'createlang';
$COM = qq{$createlang -d postgres -h "$host" $lang};
system $COM;
}
--
Cédric Villemain +33 (0)6 20 30 22 52
http://2ndQuadrant.fr/
PostgreSQL: Support 24x7 - Développement, Expertise et Formation
More information about the Check_postgres
mailing list