Skip to content

ProxySQL 4.0.13

Pre-release
Pre-release

Choose a tag to compare

@renecannao renecannao released this 28 Nov 09:38
e49994f

ProxySQL 4.0.13 Release Notes

Released November 28, 2026.

ProxySQL 4.0.13 builds on the MySQL and PostgreSQL improvements in 3.1.13 and adds new ways to query your data and ProxySQL's own statistics.

Highlights

  • Run reports against a local copy of your MySQL data and keep it up to date from the MySQL binary log.
  • Use your driver's prepared-statement API to bind values in queries against Admin and STATS.
  • Let the monitor return recovered MySQL and PostgreSQL servers to service even when no queries are arriving. This is enabled by default in 4.0.13.

Before Upgrading

  • Back up persistent DuckDB files. The plugin now uses DuckDB 2.0.0. Existing 1.x files keep their format when opened in 2.0, but new files created with the 2.0 defaults cannot be opened in 1.x. Keep a backup if you may need to roll back. DuckDB storage compatibility
  • Check DuckDB queries and extensions. Update single-arrow lambdas to the lambda x: … syntax and use DuckDB 2.0 builds of external extensions. DuckDB upgrade notes
  • Build DuckDB and MySQL Router compatibility from source. The 4.0 packages include MySQLX and GenAI. DuckDB and the MySQL Router compatibility plugin still require a source build. Use a matching ProxySQL core and plugin build. Packaging issue

New Features

Run reports on a local copy of your MySQL data

Choose the MySQL tables you need for reporting. The DuckDB plugin takes a snapshot, then applies committed changes from the binary log to a local DuckDB file. You can run reports against that copy while your application continues writing to MySQL. Check replication progress in stats_duckdb_replica. Replica setup

The replica follows one MySQL source and needs GTIDs and row-based binary logging with full row images. Select transactional tables with primary keys. If the source schema changes, take a new snapshot. Avoid tables affected by foreign-key CASCADE or SET NULL actions. Changes from those actions can be missing from the replica. Replica requirements and limits

If you have existing MySQL reports, duckdb-mysql_dialect=mysql_analytical can translate supported SELECT queries, including eligible joins and aggregates. The native DuckDB dialect remains the default. On the native listeners, MySQL and PostgreSQL drivers can also prepare supported reads and writes. Drivers now receive column types for supported values in ordinary query results, so they can return numbers and binary values directly. MySQL query compatibility · DuckDB protocol guide

Bind parameters in Admin and STATS queries

A monitoring tool can now prepare a query against stats_mysql_query_digest and bind a different username each time it runs. This works with both MySQL and PostgreSQL drivers. Admin can also prepare supported writes under the usual permissions. STATS stays read-only, and PostgreSQL clients must use UTF-8. Send ProxySQL commands such as LOAD and SAVE as ordinary SQL requests. #6666

Plugin developers can use ABI 17 to register a provider for read-only prepared SQL. Existing plugins using supported older interfaces can still load with the matching debug or release build mode. Embedded execution contract

Return recovered servers to service automatically

A quiet reader group can recover before the next application query arrives. A successful monitor ping can bring back a server ProxySQL took out of rotation after errors once the usual recovery conditions are met. This is on by default for both protocols in 4.0.13. To turn it off, set mysql-monitor_unshun_on_ping_success or pgsql-monitor_unshun_on_ping_success to false. #6686

Bug Fixes

  • MySQLX. TLS upgrades complete correctly, and clients receive buffered results before a backend disconnect is reported. Mapped accounts can also use stored caching_sha2_password verifiers when the client connects over TLS and ProxySQL can verify the backend certificate and hostname. MySQLX authentication · #6603 · #6638
  • Managed servers. Reloading the server configuration locally or through Cluster keeps endpoints supplied by discovery plugins in service. Changes to mysql-aws_locality_awareness applied through a managed plugin now affect server selection across availability zones. #6638 · #6680
  • GenAI query tools. The read-only MCP tools now run PostgreSQL queries in a read-only transaction. They also accept ordinary literals and aliases that contain SQL keywords. GenAI read-only query tools

MySQL and PostgreSQL Updates

This release also adds direct PostgreSQL TLS, runs initialization SQL on new PostgreSQL backend connections, and reduces the memory needed to send large results. It includes the shared fixes for interrupted PostgreSQL bulk transfers, MySQL transaction routing, and the login crash in debug builds, along with HTTPS for REST and Prometheus. 3.1.13 release notes · 3.0.13 release notes

Security Fixes

  • Fixed memory corruption when ProxySQL processed malformed MySQL packets after a client logged in. Reported by Uvi-12. GHSA-w9p8-gf9c-hffr
  • Fixed a read beyond the end of a malformed PostgreSQL login message that could crash ProxySQL before authentication. Reported by Uvi-12. GHSA-5xv5-24pg-gmq8
  • Fixed a separate crash during PostgreSQL SCRAM password authentication when the client's login message was incomplete. Reported by aoi0120. GHSA-qhxc-2rc8-r6hh

Platform Support

This is the last planned feature release with AlmaLinux 8 packages. #6734