From: Gilles Darold Date: Thu, 9 Jun 2016 07:35:47 +0000 (+0200) Subject: Fix case of duplicate normalyzed error message with "nonstandard use of ...". X-Git-Tag: v8.2~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8226bd8e36a00ff73d0cf4c92a7e9c250e8b0254;p=pgbadger Fix case of duplicate normalyzed error message with "nonstandard use of ...". --- diff --git a/pgbadger b/pgbadger index d4cc199..4430a27 100755 --- a/pgbadger +++ b/pgbadger @@ -13299,7 +13299,7 @@ sub normalize_error return if (!$orig_query); # Remove character position - $orig_query =~ s/ at character \d+//; + $orig_query =~ s/ at character \d+.*//s; # Remove encoding detail $orig_query =~ s/(byte sequence for encoding).*/$1/;