Allow optional space before 'QUERY PLAN'
authorGreg Sabino Mullane <[email protected]>
Sat, 1 Nov 2014 16:48:49 +0000 (12:48 -0400)
committerGreg Sabino Mullane <[email protected]>
Sat, 1 Nov 2014 16:48:49 +0000 (12:48 -0400)
check_postgres.pl

index a075d97c79eb75eebe48ed7dc32cffbc773d0559..5f78bbb8c95ed92a2487f0a67d4662df516eb64d 100755 (executable)
@@ -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';
                 }