From: Darold Gilles Date: Sat, 4 Jun 2016 09:42:12 +0000 (+1100) Subject: Fix storage of current temporary file related request. X-Git-Tag: v8.2~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=42d2c9b149d025654ec8e970f29482e79a0810a3;p=pgbadger Fix storage of current temporary file related request. --- diff --git a/pgbadger b/pgbadger index 4ba6925..d4cc199 100755 --- a/pgbadger +++ b/pgbadger @@ -12173,7 +12173,7 @@ sub parse_query $cur_temp_info{$t_pid}{query} = $prefix_vars{'t_statement'}; } elsif ($filepath =~ /\.\d+"$/) { # Temporary store the current request to keep temporary file query in memory - $cur_temp_info{$t_pid}{query} = $cur_info{$t_pid}{statement} || $cur_info{$t_pid}{query} if (!exists $cur_temp_info{$t_pid}{query}); + $cur_temp_info{$t_pid}{query} = $cur_info{$t_pid}{statement} if (!exists $cur_temp_info{$t_pid}{query}); } if (!exists $cur_temp_info{$t_pid}{timestamp}) { $cur_temp_info{$t_pid}{timestamp} = $prefix_vars{'t_timestamp'};