diff options
author | Peter Eisentraut | 2011-02-08 21:54:59 +0000 |
---|---|---|
committer | Greg Sabino Mullane | 2011-02-08 21:54:59 +0000 |
commit | da490ec9602c10875921dc5b343f5b56a3580a2f (patch) | |
tree | 4c8e2d5468c3c50a3f378c7d1b837fcf0454cd7f /check_postgres.pl | |
parent | fc568d3df70f438c8de927a6e0652417b104e78d (diff) |
Fix regex per bug #69
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-x | check_postgres.pl | 2 |
1 files changed, 1 insertions, 1 deletions
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}; |