Add support for PgBouncer transaction pooling mode by allowing to disable prepared statements #17044
Labels
bun.js
Something to do with a Bun-specific API
enhancement
New feature or request
sql
Something to do with `sql` in the "bun" module
What is the problem this feature would solve?
When trying to use Bun's SQL client with PgBouncer in transaction pooling mode, the connection fails because PgBouncer doesn't support prepared statements. Currently, there's no way to disable prepared statements in Bun's SQL client.
What is the feature you are proposing to solve the problem?
Add configuration options to the Database constructor to disable prepared statements:
What alternatives have you considered?
Using PgBouncer in session pooling mode instead of transaction pooling mode
Connecting directly to PostgreSQL (port 5432)
Using different database clients
The text was updated successfully, but these errors were encountered: