darold / pgbadger

A fast PostgreSQL Log Analyzer

Home Page:http://pgbadger.darold.net/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wrong report generation

jcasanov opened this issue · comments

Hi,

I'm trying to generate a report (pgbadger 12.1) for the queries of only one database, but keeps getting the sentence of another database appended to the end of a valid query for the report. I'm attaching a sample of the log causing the problem and the generated html.

You can find the offending query in "Slowest individual queries" first position, and can look for "itx_cdr_unique".

The command I'm using is:
pgbadger --prefix='%t %a [%p]: [%l-1] xid=%x,user=%u,db=%d,host=%r ' --dbname radius --include-query "(insert|update|delete)" -o file.html postgres.log

file.html.gz
postgres.log.gz

Commit f577f2f fixes this issue.