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

Post-quantum cryptography: where we stand

On December 1 and 2, the NSA and a joint statement from ONCD, NSA and CISA called on organisations to speed up their move to post-quantum cryptography. Several of our customers asked what this means for their services on Clever Cloud.

Engineering

What’s new on Clever Cloud in 2026

A year ago, we announced a 2026 full of new features and upheavals. Kubernetes, new zones, a platform rewrite, AI: here is what changed, and what awaits you in 2027.
Company Features

Cellar: Clever Cloud simplifies and lowers its pricing

From 1 December 2026, Clever Cloud simplifies and lowers the pricing of Cellar, its S3-compatible object storage service. Pricing tiers give way to a single rate of €10 excl. VAT per TB, for both monthly storage and egress.

Engineering