Skip to content

ProxySQL 3.1.13

Pre-release
Pre-release

Choose a tag to compare

@renecannao renecannao released this 28 Nov 09:38
e49994f

ProxySQL 3.1.13 Release Notes

Released November 28, 2026.

ProxySQL 3.1.13 brings the Stable fixes to the Innovative series and improves how ProxySQL opens connections, recovers servers after outages, and sends large results.

Highlights

  • PostgreSQL 17 and newer clients can use direct TLS to connect to ProxySQL.
  • A reader that recovers after an outage can return to service even when no queries are arriving. This is opt-in in 3.1.13.
  • Large results need less buffering for both MySQL and PostgreSQL.

New Features

Connect PostgreSQL clients with direct TLS

With pgsql-have_ssl=true on ProxySQL, clients built with libpq 17 or newer can set sslnegotiation=direct to skip the initial PostgreSQL SSL request. For example, use psql 'host=proxy.example port=6133 dbname=app sslmode=verify-full sslnegotiation=direct' with your trusted CA configured. This applies to the client connection to ProxySQL. Clients using the usual SSL request continue to work. #6662

Bring healthy servers back into service in quiet pools

A server that ProxySQL temporarily took out of rotation after errors can now return when the monitor successfully pings it and the normal recovery conditions are met. A quiet reader group can recover before the next application query arrives. Enable mysql-monitor_unshun_on_ping_success or pgsql-monitor_unshun_on_ping_success for the protocol you use. Both are off by default in 3.1.13. #6686

Use less memory to send results

MySQL and PostgreSQL connections typically start with 1 KiB of output buffer space, down from 32 KiB. ProxySQL can send large responses directly from their existing buffers and resume sending when a slow client is ready to read again. MySQL connections that use compression still grow their buffer when needed. #6667

Choose which services start and protect metrics with HTTPS

As in 3.0.13, you can start the MySQL and PostgreSQL workers, Admin listeners, and monitors independently. The REST API and /metrics can use HTTPS, require a trusted client certificate, and listen on a specific address. PostgreSQL applications can also keep supported set_config() settings across pooled connections when the ParserSQL SET parser is enabled. Startup controls · REST API configuration · PostgreSQL session settings

Bug Fixes

PostgreSQL

  • pgsql-init_connect now runs before the first query on a new backend connection and runs again when an initialized connection is reset. Use it for commands such as SET statement_timeout = '5s'. A nonempty hostgroup init_connect overrides the global setting. Use commands that return no rows. Set per-client settings such as search_path through the client so ProxySQL can track them. #6709
  • When a driver requests a limited number of rows from an unnamed portal, ProxySQL honors that limit on native PostgreSQL backends. Drivers can also read available responses with Flush before sending Sync. #6577

MySQL and MariaDB

  • Drivers that use MySQL's change-user command can reauthenticate with caching_sha2_password on an existing connection, including a compressed one. When ProxySQL advertises caching_sha2_password, switching to an account stored with a mysql_native_password hash requires TLS or RSA key retrieval. Pass-through accounts still require a new connection. #6724
  • Fixed a crash that could occur during MySQL login in debug builds when ProxySQL logged the selected database. The fix also covers the MariaDB ed25519 authentication switch. #6738

Monitoring and Shared Fixes

  • Collecting query-digest memory metrics causes less contention when there are many distinct queries in the statistics tables. ProxySQL reuses the memory estimate until the digests change enough to refresh it. The refresh threshold defaults to 5%. Set admin-stats_query_digest_memory_refresh_pct=0 to recalculate on every read. #6674
  • The shared fixes keep PostgreSQL bulk transfers from tying up other sessions, preserve routing to the MySQL transaction's backend after a failed statement, and prevent Admin saves from overwriting query rules or firewall settings while the corresponding runtime is unavailable. 3.0.13 fixes and security updates

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