summaryrefslogtreecommitdiff
path: root/check_postgres.pl
diff options
context:
space:
mode:
authorGreg Sabino Mullane2014-11-01 16:48:49 +0000
committerGreg Sabino Mullane2014-11-01 16:48:49 +0000
commit5a5cf9ffc53207517aadc3f2619ce4f6cb82c8f5 (patch)
tree1a3b900651f3aebe8adcf56fd419216f6ba4b5d0 /check_postgres.pl
parent819a956d7c2090b69780b35c102cce73d73e15ac (diff)
Allow optional space before 'QUERY PLAN'
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 a075d97c7..5f78bbb8c 100755
--- a/check_postgres.pl
+++ b/check_postgres.pl
@@ -2463,7 +2463,7 @@ sub run_command {
$stuff[$lnum]{$1} = $2;
$lastval = $1;
}
- elsif ($line =~ /^QUERY PLAN\s+\| (.*)/) {
+ elsif ($line =~ /^ ?QUERY PLAN\s+\| (.*)/) {
$stuff[$lnum]{queryplan} = $1;
$lastval = 'queryplan';
}