From: Greg Sabino Mullane Date: Sat, 1 Nov 2014 16:48:49 +0000 (-0400) Subject: Allow optional space before 'QUERY PLAN' X-Git-Tag: 2.22.0~16 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=5a5cf9ffc53207517aadc3f2619ce4f6cb82c8f5;p=check_postgres.git Allow optional space before 'QUERY PLAN' --- 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'; }