From: Darold Gilles Date: Wed, 15 Jun 2016 13:56:00 +0000 (+0200) Subject: Add date to samples of queries generating most temporary files. X-Git-Tag: v8.2~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5f73f126516c6f35b3b9bb6fd19eb04507214d89;p=pgbadger Add date to samples of queries generating most temporary files. --- diff --git a/pgbadger b/pgbadger index 5414adb..bce960d 100755 --- a/pgbadger +++ b/pgbadger @@ -9006,7 +9006,8 @@ sub print_tempfile_report $query = &highlight_code($normalyzed_info{$k}{samples}{$d}{query}); my $md5 = ''; $md5 = 'md5: ' . md5_hex($normalyzed_info{$k}{samples}{$d}{query}) if ($enable_checksum); - my $details = "Duration: " . &convert_time($d) . "
"; + my $details = "Date: " . $normalyzed_info{$k}{samples}{$d}{date} . "
"; + $details .= "Duration: " . &convert_time($d) . "
"; $details .= "Database: $normalyzed_info{$k}{samples}{$d}{db}
" if ($normalyzed_info{$k}{samples}{$d}{db}); $details .= "User: $normalyzed_info{$k}{samples}{$d}{user}
" if ($normalyzed_info{$k}{samples}{$d}{user}); $details .= "Remote: $normalyzed_info{$k}{samples}{$d}{remote}
" if ($normalyzed_info{$k}{samples}{$d}{remote});