November 19, 2026: PostgreSQL 19 Released!

pgbadger v13.4 has been released

Posted on 2026-12-05 by HexaCluster
Related Open Source

Jonkoping, Sweden - December 04, 2026

pgBadger

pgBadger is a PostgreSQL performance analyzer, built for speed with fully detailed reports based on your PostgreSQL log files.

pgBadger 13.4 was released today, this is a maintenance release that fixes issues and applied patches reported by users since last release. It also adds some new features:

  • Add time series of connections per host.

    The "Connections per host" report only had a pie chart and a table of the total number of connections per host, it was not possible to see when a host was responsible of a spike of connections.

    A time series graph is added below the chart and table: the number of connections of each host per period (--average minutes, 5 by default). To reduce noise with many client hosts, only the hosts with the most connections are drawn, the connections of the other hosts are summed in an "Others" serie, so the sum of the series is the total number of connections. New option --top-hosts sets the number of hosts drawn, default 10, 0 disables the graph.

  • Make histograms of query and session times adapt to the logged durations. With log_min_duration_statement = 1000 the histogram of query times only had 2 useful bars (1000-10000ms and > 10000ms) because of the fixed default inbounds. The default inbounds are now finer and leading and trailing empty ranges are not reported, so the histograms adapt to the durations found in the logs without any configuration. Options --histogram-query and --histogram-session are kept for custom inbounds, all their ranges are reported as before.

  • Add support for Google Cloud Logging exports of AlloyDB and CloudSQL logs. AlloyDB (and CloudSQL) PostgreSQL logs exported from Google Cloud Logging were not or only partially parsed.

  • Add support for the logs of Azure Database for PostgreSQL archived to a storage account through Diagnostic Settings (PostgreSQLLogs category, PT1H.json blobs in JSON Lines format, one record per line). Until now these logs gave an empty report and users had to convert them to stderr format with jq. The format is now autodetected as jsonlog. The message property holds the full log line with the log_line_prefix, it is parsed using the --prefix given at command line to extract user, database, client and application. The detail, hint, context and statement properties are attached to the message, so bind parameters are applied and error details reported. When no prefix is given, or it does not match, timestamp, processId, errorLevel and sqlerrcode properties are used.

  • Add permalink anchors to query and error entries in HTML report Each entry of the top queries and top errors lists already has a unique id on its details cell. Add a small link pointing to that id so a specific entry can be linked. The link is placed before the query block, floated to the right.

  • Report durations with 3 decimals instead of rounding to milliseconds Min/max/avg durations were rounded to an integer number of milliseconds by convert_time() because of the use of sprintf("%.3d"), so all sub-millisecond values were reported as 0ms. For example the average query duration (15000 + 696) / 300281 = 0.0522 was displayed as 0ms.

For the complete list of changes, please checkout the release note on https://github.com/darold/pgbadger/releases

Links & Credits

I would like to thank all users who submitted patches and users who reported bugs and feature requests, they are all cited the ChangeLog file.

pgBadger is an open project. Any contribution to build a better tool is welcome. You just have to send your ideas, features requests or patches using the GitHub tools or directly to pgbadger@darold.net.

Links :

For a complete list of commercial support near of your place take a look at the PostgreSQL Professional Services page, they all do great job and most of them can help you.


About pgBadger :

pgBagder is a new generation log analyzer for PostgreSQL, created by Gilles Darold (also author of ora2pg, the powerful migration tool). pgBadger is a fast and easy tool to analyze your SQL traffic and create HTML5 reports with dynamics graphs. pgBadger is the perfect tool to understand the behavior of your PostgreSQL servers and identify which SQL queries need to be optimized.

Docs, Download & Demo at http://pgbadger.darold.net/