Since PgBouncer 1.21.0 it now supports protocol level named prepared statements, so you shouldn't need to disable them in JDBC anymore. You can turn this support on by setting `max_prepared_statements` to a non-zero value in PgBouncer its config file. For details check the docs: https://www.pgbouncer.org/config.html#max_prepared_statements
Since PgBouncer 1.21.0 now supports protocol level named prepared statements, which is probably what the Ruby client uses. You can turn this support on by setting `max_prepared_statements` to a non-zero value. For details check the docs: https://www.pgbouncer.org/config.html#max_prepared_statements