pgFouine is a PostgreSQL log analyzer. It allows you to have a clear
overview of your database activity, and can generate reports with
slowest queries, most frequent queries, errors, graphs, and so on. It
is written in PHP and is designed to parse huge log files with a low
memory footprint.