]> granicus.if.org Git - pgbadger/commitdiff
Report information about "LOG: skipping analyze of ..." into events reports.
authorDarold Gilles <gilles@darold.net>
Thu, 14 Jan 2016 15:48:36 +0000 (16:48 +0100)
committerDarold Gilles <gilles@darold.net>
Thu, 14 Jan 2016 15:48:36 +0000 (16:48 +0100)
pgbadger

index bba30b8f86ee642f94c43d2ed2c2617de3f4ebd1..02f11452b18b620f875771c537a8bb105abda68f 100755 (executable)
--- a/pgbadger
+++ b/pgbadger
@@ -3888,6 +3888,7 @@ sub show_error_as_text
                        $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/;
+                       $msg =~ s/ERROR:  (skipping analyze of)/LOG:  $1/;
                        print $fh "$idx) " . &comma_numbers($error_info{$k}{count}) . " - $msg\n";
                        print $fh "--\n";
                        my $j = 1;
@@ -3897,6 +3898,7 @@ sub show_error_as_text
                                        || ($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:  (sending cancel to blocking autovacuum)/LOG:  $1/)
+                                       || ($error_info{$k}{error}[$i] =~ s/ERROR:  (skipping analyze of)/LOG:  $1/)
                                        )
                                {
                                        $logs_type{ERROR}--;
@@ -3916,6 +3918,7 @@ sub show_error_as_text
                                || ($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:  (sending cancel to blocking autovacuum)/LOG:  $1/)
+                               || ($error_info{$k}{error}[0] =~ s/ERROR:  (skipping analyze of)/LOG:  $1/)
                                )
                        {
                                $logs_type{ERROR}--;
@@ -8893,6 +8896,7 @@ sub print_log_level
                                        || ($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:  (sending cancel to blocking autovacuum)/LOG:  $1/)
+                                       || ($error_info{$k}{error}[$i] =~ s/ERROR:  (skipping analyze of)/LOG:  $1/)
                                )
                                {
                                        $logs_type{ERROR}--;
@@ -8905,6 +8909,7 @@ sub print_log_level
                                || ($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:  (sending cancel to blocking autovacuum)/LOG:  $1/)
+                               || ($error_info{$k}{error}[0] =~ s/ERROR:  (skipping analyze of)/LOG:  $1/)
                                )
                        {
                                $logs_type{ERROR}--;
@@ -9112,6 +9117,7 @@ sub show_error_as_html
                $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/;
+               $msg =~ s/ERROR:  (skipping analyze of)/LOG:  $1/;
                my $error_level_class = 'text-error';
                if ($msg =~ /^WARNING: /) {
                        $error_level_class = 'text-warning';
@@ -10093,6 +10099,8 @@ sub parse_query
                        $prefix_vars{'t_loglevel'} = 'ERROR';
                } elsif ($prefix_vars{'t_query'} =~ /ending cancel to blocking autovacuum/) {
                        $prefix_vars{'t_loglevel'} = 'ERROR';
+               } elsif ($prefix_vars{'t_query'} =~ /skipping analyze of/) {
+                       $prefix_vars{'t_loglevel'} = 'ERROR';
                }
 
        } elsif (($prefix_vars{'t_loglevel'} eq 'ERROR') && !$error_only) {