From f67fa6acbc844096c3a5d19d0a8b30cdbb7958c0 Mon Sep 17 00:00:00 2001 From: Darold Gilles Date: Mon, 10 Dec 2012 09:39:38 +0100 Subject: [PATCH] Fix issue #45, pgbadger will now only reports execute statement of the extended protocol (parse/bind/execute). Thanks to pierrestroh for the report. --- pgbadger | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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/ -- 2.50.1