darold / pgbadger

A fast PostgreSQL Log Analyzer
http://pgbadger.darold.net/
PostgreSQL License
3.55k stars 352 forks source link

Possible regex typo in normalize_error() #729

Closed mbanck closed 2 years ago

mbanck commented 2 years ago

Line 17733 is this:

    $orig_query =~ s/(permission denied for ^\s]+) .*/$1 .../;

I think it should be [^\s]+ instead?

darold commented 2 years ago

Right, good catch. Commit 9b9019b fixes the issue.