From: Darold Gilles Date: Thu, 9 Apr 2015 17:57:14 +0000 (+0200) Subject: Fix previous patch for csvlog generated with a PostgreSQL version before 9.0 X-Git-Tag: v6.4~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c420a4953ffcfefcbe077cbe93126dab6154f372;p=pgbadger Fix previous patch for csvlog generated with a PostgreSQL version before 9.0 --- diff --git a/pgbadger b/pgbadger index 452b56e..76f5498 100755 --- a/pgbadger +++ b/pgbadger @@ -2035,8 +2035,8 @@ sub process_file # We received a signal last CSVLOOP if ($terminate); - # 23 columns in csvlog (from 9.0 to current) - next if $#{$row} != 22; + # Number of columns in csvlog (22 before 9.0 and 23 from 9.0 to current) + next if ( ($#{$row} != 22) && ($#{$row} != 21) ); # Set progress statistics $cursize += length(join(',', @$row));