From bc87f1cc0561d56b0a5b0e94fba49af03cdc62e4 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Wed, 29 Apr 2009 08:11:15 -0400 Subject: Refactor EXISTS thing, make older PG version testing better. --- check_postgres.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'check_postgres.pl') diff --git a/check_postgres.pl b/check_postgres.pl index 8189b37dd..789886c9e 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -2539,7 +2539,7 @@ sub check_connection { ## Parse it out and return our information for $db (@{$info->{db}}) { - if ($db->{slurp} !~ /PostgreSQL (\S+)/o) { ## no critic (ProhibitUnusedCapture) + if ($db->{slurp} !~ /PostgreSQL (\d+\.\d+\S+)/o) { ## no critic (ProhibitUnusedCapture) add_unknown msg('invalid-query', $db->{slurp}); next; } -- cgit v1.2.3