pgbadger icon indicating copy to clipboard operation
pgbadger copied to clipboard

Missing slowest queries report

Open mastershifu opened this issue 13 years ago • 1 comments

Is there some flag I need to enable to see the slowest queries report? I've the following postgres,conf:

log_destination = 'stderr' logging_collector = on log_min_duration_statement = 0 log_line_prefix = '%t [%p]: [%l-1] ' log_statement = 'all'

I run the tool:

[root@host pgbadger-3.6]# perl pgbadger -j 2 -v /var/lib/pgsql/9.2/data/pg_log/postgresql-Mon.log DEBUG: Autodetected log format 'stderr' from /var/lib/pgsql/9.2/data/pg_log/postgresql-Mon.log DEBUG: Output 'html' reports will be written to out.html DEBUG: Starting progressbar writer process DEBUG: Starting to parse log file: /var/lib/pgsql/9.2/data/pg_log/postgresql-Mon.log DEBUG: Starting reading file /var/lib/pgsql/9.2/data/pg_log/postgresql-Mon.log... DEBUG: Starting to parse log file: /var/lib/pgsql/9.2/data/pg_log/postgresql-Mon.log DEBUG: Starting reading file /var/lib/pgsql/9.2/data/pg_log/postgresql-Mon.log... [==================> ] Parsed 1452193257 bytes of 1915937215 (75.80%), queries: 2561335, events: 0

But this is the only stats in out.html:

Overall statistics | Hourly statistics | Queries by type | Most frequent queries (N) |

mastershifu avatar Sep 30 '13 14:09 mastershifu

I saw on other that

log_statement = 'none'

should solve it. It did :-)

mastershifu avatar Sep 30 '13 15:09 mastershifu