#
# You must enable SQL query logging : log_min_duration_statement = 0
# Log line prefix should be : log_line_prefix = '%t [%p]: [%l-1] '
-# Log line prefix should be : log_line_prefix = '%t [%p]: [%l-1] user=username,db=dbname'
-# Log line prefix should be : log_line_prefix = '%t [%p]: [%l-1] db=dbname,user=username'
# Log line prefix should be : log_line_prefix = '%t [%p]: [%l-1] user=%u,db=%d '
# Log line prefix should be : log_line_prefix = '%t [%p]: [%l-1] db=%d,user=%u '
#
while (my $line = <$lfile>) {
$cursize += length($line);
chomp($line);
- $line =~ s/
-//;
+ $line =~ s/\r//;
$nlines++;
next if (!$line);
}
while (my $line = <$tfile>) {
chomp($line);
- $line =~ s/
-//;
+ $line =~ s/\r//;
next if (!$line);
$nline++;
# Is syslog lines ?