From 5a5cf9ffc53207517aadc3f2619ce4f6cb82c8f5 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Sat, 1 Nov 2014 12:48:49 -0400 Subject: Allow optional space before 'QUERY PLAN' --- 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 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'; } -- cgit v1.2.3