[check_postgres] pg 74 detection
Giles Westwood
giles.westwood at semantico.com
Tue Oct 13 15:59:05 UTC 2009
Hi Greg,
We have a few pg74 Debian sarge boxes still... yes I know.
$opt{defaultdb} = $psql_version >= 7.4 ? 'postgres' : 'template1';
didn't select template1
/usr/bin/psql -V
psql (PostgreSQL) 7.4.7
$opt{defaultdb} = $psql_version > 7.4 ? 'postgres' : 'template1';
worked for me.
--
Giles Westwood, Systems Administrator,
Semantico, Floor 1, 21-23 Dyke Road, Brighton BN1 3FE
<http://www.semantico.com/>
<mailto:Giles.Westwood at semantico.com>
<tel:+44-1273-358231> <fax:+44-1273-723232>
More information about the Check_postgres
mailing list