$msg =~ s/ERROR: (database system was shut down)/LOG: $1/;
$msg =~ s/ERROR: (recovery has paused)/LOG: $1/;
$msg =~ s/ERROR: (database system was interrupted while in recovery)/LOG: $1/;
+ $msg =~ s/ERROR: (sending cancel to blocking autovacuum)/LOG: $1/;
print $fh "$idx) " . &comma_numbers($error_info{$k}{count}) . " - $msg\n";
print $fh "--\n";
my $j = 1;
if ( ($error_info{$k}{error}[$i] =~ s/ERROR: (parameter "[^"]+" changed to)/LOG: $1/)
|| ($error_info{$k}{error}[$i] =~ s/ERROR: (database system was shut down)/LOG: $1/)
|| ($error_info{$k}{error}[$i] =~ s/ERROR: (database system was interrupted while in recovery)/LOG: $1/)
- || ($error_info{$k}{error}[$i] =~ s/ERROR: (recovery has paused)/LOG: $1/))
+ || ($error_info{$k}{error}[$i] =~ s/ERROR: (recovery has paused)/LOG: $1/)
+ || ($error_info{$k}{error}[$i] =~ s/ERROR: (sending cancel to blocking autovacuum)/LOG: $1/)
+ )
{
$logs_type{ERROR}--;
$logs_type{LOG}++;
if ( ($error_info{$k}{error}[0] =~ s/ERROR: (parameter "[^"]+" changed to)/LOG: $1/)
|| ($error_info{$k}{error}[0] =~ s/ERROR: (database system was shut down)/LOG: $1/)
|| ($error_info{$k}{error}[0] =~ s/ERROR: (database system was interrupted while in recovery)/LOG: $1/)
- || ($error_info{$k}{error}[0] =~ s/ERROR: (recovery has paused)/LOG: $1/))
+ || ($error_info{$k}{error}[0] =~ s/ERROR: (recovery has paused)/LOG: $1/)
+ || ($error_info{$k}{error}[0] =~ s/ERROR: (sending cancel to blocking autovacuum)/LOG: $1/)
+ )
{
$logs_type{ERROR}--;
$logs_type{LOG}++;
if ( ($error_info{$k}{error}[$i] =~ s/ERROR: (parameter "[^"]+" changed to)/LOG: $1/)
|| ($error_info{$k}{error}[$i] =~ s/ERROR: (database system was shut down)/LOG: $1/)
|| ($error_info{$k}{error}[$i] =~ s/ERROR: (database system was interrupted while in recovery)/LOG: $1/)
- || ($error_info{$k}{error}[$i] =~ s/ERROR: (recovery has paused)/LOG: $1/))
+ || ($error_info{$k}{error}[$i] =~ s/ERROR: (recovery has paused)/LOG: $1/)
+ || ($error_info{$k}{error}[$i] =~ s/ERROR: (sending cancel to blocking autovacuum)/LOG: $1/)
+ )
{
$logs_type{ERROR}--;
$logs_type{LOG}++;
if ( ($error_info{$k}{error}[0] =~ s/ERROR: (parameter "[^"]+" changed to)/LOG: $1/)
|| ($error_info{$k}{error}[0] =~ s/ERROR: (database system was shut down)/LOG: $1/)
|| ($error_info{$k}{error}[0] =~ s/ERROR: (database system was interrupted while in recovery)/LOG: $1/)
- || ($error_info{$k}{error}[0] =~ s/ERROR: (recovery has paused)/LOG: $1/))
+ || ($error_info{$k}{error}[0] =~ s/ERROR: (recovery has paused)/LOG: $1/)
+ || ($error_info{$k}{error}[0] =~ s/ERROR: (sending cancel to blocking autovacuum)/LOG: $1/)
+ )
{
$logs_type{ERROR}--;
$logs_type{LOG}++;
$msg =~ s/ERROR: (database system was shut down)/LOG: $1/;
$msg =~ s/ERROR: (database system was interrupted while in recovery)/LOG: $1/;
$msg =~ s/ERROR: (recovery has paused)/LOG: $1/;
+ $msg =~ s/ERROR: (sending cancel to blocking autovacuum)/LOG: $1/;
my $error_level_class = 'text-error';
if ($msg =~ /^WARNING: /) {
$error_level_class = 'text-warning';
$prefix_vars{'t_loglevel'} = 'ERROR';
} elsif ($prefix_vars{'t_query'} =~ /recovery has paused/) {
$prefix_vars{'t_loglevel'} = 'ERROR';
+ } elsif ($prefix_vars{'t_query'} =~ /ending cancel to blocking autovacuum/) {
+ $prefix_vars{'t_loglevel'} = 'ERROR';
}
} elsif (($prefix_vars{'t_loglevel'} eq 'ERROR') && !$error_only) {
$orig_query =~ s/(relation) \d+ (deleted while still in use)/$1 ... $2/g;
$orig_query =~ s/[0-9A-F]{24}/.../g; # Remove WAL filename
$orig_query =~ s/, u_uuid: [^,]+, file_path:.*/. Retrying/g;
+ $orig_query =~ s/ PID \d+//;
# Need more normalization stuff here
return $orig_query;