From 51cb49e066535bbccf62b80863837a80d5190e52 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Wed, 14 Oct 2009 08:24:00 -0400 Subject: Fix so old versions of Postgres (< 8.0) use the correct default database (Giles Westwood) --- check_postgres.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'check_postgres.pl') 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 -- cgit v1.2.3