The PostgreSQL JDBC Driver is now PgBouncer compliant

Three years ago a discussion was launched on the Pgbouncer mailing-list [1] about the JDBC Driver which does not disable prepared statements when using ?prepareThreshold=0 in the connection string.

At Clever Cloud, we provide PostgreSQL databases behind PgBouncer to handle pools of connections. And to optimize these pools, we use the transaction pooling mode. This mode will prevent clients from using prepared statements as the session is only used for one transaction.

To be able to use this mode internally we manually applied a patch to the driver. After 8 months of inactivity, the pull-request [2][3] was finally merged into the master branch of the driver.

Now we hope that the next version will be released soon.

References:

[1] http://lists.pgfoundry.org/pipermail/pgbouncer-general/2010-February/000507.html [2] https://github.com/pgjdbc/pgjdbc/pull/9 [3] https://github.com/pgjdbc/pgjdbc/pull/58

Blog

À lire également

Critical Vulnerability in React Server Components and Next.js: What Clever Cloud Customers Must Do


On December 3rd, a critical vulnerability (CVE-2025-55182) affecting React Server Components (RSC) was disclosed by the React team. This…

Company

Otoroshi 17.9 is here: discover mailer, Swagger UI, zip site, llms.txt, workflows

Since last year, we have been offering our customers a simplified deployment of Otoroshi, an API Gateway that meets these needs and many more. Now that version 17.9 is available, let’s explore some of its lesser-known features and new additions.
Company

What’s new on Clever Cloud, Q4 2025

As the end of the year approaches, it is time to look back at the new features we have rolled out for our customers since the summer. The platform has continued to improve, supported, as always, by new initiatives and growth in emerging areas.
Company Features