From: Darold Date: Tue, 23 Oct 2012 07:38:46 +0000 (+0200) Subject: Fix auto detection of log_min_duration_statement format. X-Git-Tag: v3.2~116 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=98fe763b6f728dd901343073ff4544676b1d9932;p=pgbadger Fix auto detection of log_min_duration_statement format. --- diff --git a/pgbadger b/pgbadger index 58160d2..980c0ec 100755 --- a/pgbadger +++ b/pgbadger @@ -3802,8 +3802,7 @@ sub autodetect_duration $line =~ s/ //; next if (!$line); $nline++; - - if (($line =~ /\s+duration: \d+\.\d+ ms\s+/) || ($line =~ /,"duration: \d+\.\d+ ms\s+[^"]+"/)) { + if (($line =~ /\s+duration: \d+\.\d+ ms\s+(query|statement|prepare|parse|bind|execute)/) || ($line =~ /,"duration: \d+\.\d+ ms\s+(query|statement|prepare|parse|bind|execute)[^"]+"/)) { $nfound++; } last if (($nfound > 10) || ($nline > 25000));