From: Greg Sabino Mullane Date: Wed, 14 Oct 2009 12:24:00 +0000 (-0400) Subject: Fix so old versions of Postgres (< 8.0) use the correct default database (Giles Westwood) X-Git-Tag: 2.12.0~7 X-Git-Url: http://waps.l3s.uni-hannover.de/gitweb/?a=commitdiff_plain;h=51cb49e066535bbccf62b80863837a80d5190e52;p=check_postgres.git Fix so old versions of Postgres (< 8.0) use the correct default database (Giles Westwood) --- diff --git a/check_postgres.pl b/check_postgres.pl index 063cdc50e..994090cd1 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -993,7 +993,7 @@ $psql_revision =~ s/\D//g; $VERBOSE >= 2 and warn qq{psql=$PSQL version=$psql_version\n}; -$opt{defaultdb} = $psql_version >= 7.4 ? 'postgres' : 'template1'; +$opt{defaultdb} = $psql_version >= 8.0 ? 'postgres' : 'template1'; sub add_response { my ($type,$msg) = @_; @@ -7898,6 +7898,7 @@ Items not specifically attributed are by Greg Sabino Mullane. =item B + Fix so old versions of Postgres (< 8.0) use the correct default database (Giles Westwood) For "same_schema" trigger mismatches, show the attached table. =item B