From: Sivakumar.K Date: Tue, 20 Jul 2010 15:03:35 +0000 (-0400) Subject: Fix the regex that matches psql/edb-psql X-Git-Tag: 2.15.1~13 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=6c62c842919d44efba63b9be88fc0503dec48220;p=check_postgres.git Fix the regex that matches psql/edb-psql --- diff --git a/check_postgres.pl b/check_postgres.pl index 3c8e19754..30c3cc46a 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -1015,7 +1015,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+)/ or ndie msg('opt-psql-nover'); our $psql_version = $1; $VERBOSE >= 2 and warn qq{psql=$PSQL version=$psql_version\n};