PgBouncer version 1.24 is available on Heroku Postgres

Change effective on 16 January 2026

Server-side PgBouncer and the client-side PgBouncer buildpack now support version 1.24 on Heroku Postgres. We’re gradually rolling out this version to all databases over the next three months during your scheduled maintenance. Run pg:info to check your upcoming maintenance. To upgrade to the latest version manually, run maintenance on your database.

With this new version, protocol-level named prepared statements are now compatible with PgBouncer configurations on Heroku. You can have up to 200 prepared statements while using the server-side PgBouncer. For the client-side buildpack, you can modify the maximum number of prepared statements tracked by PgBouncer with the PGBOUNCER_MAX_PREPARED_STATEMENTS config var. PREPARE commands via SQL are still not compatible with PgBouncer on Heroku Postgres.