summaryrefslogtreecommitdiff
path: root/check_postgres.pl
diff options
context:
space:
mode:
authorGreg Sabino Mullane2009-04-29 12:11:15 +0000
committerGreg Sabino Mullane2009-04-29 12:11:15 +0000
commitbc87f1cc0561d56b0a5b0e94fba49af03cdc62e4 (patch)
tree22c741d807be40219cf1b449341a5250c19e8722 /check_postgres.pl
parent7e422202da3286c6dd4c9a149821a362e3ab6e58 (diff)
Refactor EXISTS thing, make older PG version testing better.
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-xcheck_postgres.pl2
1 files changed, 1 insertions, 1 deletions
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;
}