From: Darold Gilles Date: Mon, 10 Dec 2012 08:39:38 +0000 (+0100) Subject: Fix issue #45, pgbadger will now only reports execute statement of the extended proto... X-Git-Tag: v3.2~88 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f67fa6acbc844096c3a5d19d0a8b30cdbb7958c0;p=pgbadger Fix issue #45, pgbadger will now only reports execute statement of the extended protocol (parse/bind/execute). Thanks to pierrestroh for the report. --- diff --git a/pgbadger b/pgbadger index f51670d..ce0b66f 100755 --- a/pgbadger +++ b/pgbadger @@ -3695,7 +3695,7 @@ sub parse_query $t_action = $2; # Skipping parse and bind logs - return if ($t_action !~ /query|statement|execute|bind/); + return if ($t_action !~ /query|statement|execute/); } elsif (!$duration_required && ($prefix_vars{'t_query'} =~ s/(query|statement): //is)) { $t_action = $1; } elsif (!$duration_required && ($prefix_vars{'t_query'} =~ s/(prepare|parse|bind|execute|execute from fetch)\s+[^:]+:\s//is)) @@ -3703,7 +3703,7 @@ sub parse_query $t_action = $1; # Skipping parse and bind logs - return if ($t_action !~ /query|statement|execute|bind/); + return if ($t_action !~ /query|statement|execute/); } elsif ($prefix_vars{'t_loglevel'} eq 'LOG') { if ($prefix_vars{'t_query'} !~ /incomplete startup packet|connection|receive|unexpected EOF|still waiting for [^\s]+Lock|checkpoint starting:|could not send data to client|parameter .*configuration file|autovacuum launcher|automatic (analyze|vacuum)|detected deadlock while waiting for|database system was shut down/