pgBadger is a fast PostgreSQL log analyzer that generates detailed reports and graphs from PostgreSQL server logs.
The tool addresses the challenge of understanding PostgreSQL performance by parsing server logs and extracting actionable insights. It accepts log files as input—either individual files, multiple files, or output from shell commands—and can also read from stdin. The analyzer processes these logs to identify performance bottlenecks, slow queries, and other diagnostic information, presenting findings through both text summaries and visual graphs.
Developers managing PostgreSQL instances should choose pgBadger when they need to analyze query performance and diagnose database issues from log data. It suits projects where log-based performance tuning is part of the operational workflow. The tool supports parallel processing for handling large log volumes efficiently, incremental reporting to update analyses without reprocessing entire logs, and both JSON and binary output formats for integration with other tools and systems. It also handles CSV-formatted logs, though stdin input does not work with csvlog format.
The project maintains steady activity with regular updates addressing bug fixes and feature refinements. Development includes ongoing improvements to the analysis engine and output capabilities. The codebase remains actively maintained with attention to performance optimization and compatibility with current PostgreSQL versions.