From: Gilles Darold Date: Thu, 18 Aug 2016 16:25:59 +0000 (+0200) Subject: Add replication command message statistics to the Events reports. Thanks to Michael... X-Git-Tag: v8.3~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1029346dc7001f8e8de043ce864eaa6b59eba325;p=pgbadger Add replication command message statistics to the Events reports. Thanks to Michael Paquier for the feature request. --- diff --git a/pgbadger b/pgbadger index 6bd1957..6f8d053 100755 --- a/pgbadger +++ b/pgbadger @@ -13387,7 +13387,10 @@ sub normalize_error $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+//; + $orig_query =~ s/( for)? PID \d+//; + $orig_query =~ s/ TIMELINE \d+/ TIMELINE n/; + $orig_query =~ s/ [0-9A-F]+\/[0-9A-F]+ / x\/x /; + $orig_query =~ s/ BASE_BACKUP LABEL '[^']*'.*/ BASE_BACKUP LABEL '...'/; # Need more normalization stuff here return $orig_query;