From da490ec9602c10875921dc5b343f5b56a3580a2f Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 8 Feb 2011 16:54:59 -0500 Subject: [PATCH] Fix regex per bug #69 --- check_postgres.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_postgres.pl b/check_postgres.pl index b8c227096..eacedbf35 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -1065,7 +1065,7 @@ if (! defined $PSQL or ! length $PSQL) { } -x $PSQL or ndie msg('opt-psql-noexec', $PSQL); $res = qx{$PSQL --version}; -$res =~ /psql.+(\d+\.\d+)/ or ndie msg('opt-psql-nover'); +$res =~ /psql\D+(\d+\.\d+)/ or ndie msg('opt-psql-nover'); our $psql_version = $1; $VERBOSE >= 2 and warn qq{psql=$PSQL version=$psql_version\n}; -- 2.39.5