Skip to content

Ability to support pgbouncer with transaction pool_mode #339

Closed
@aleksey-mashanov

Description

@aleksey-mashanov

I have seen previous discussions on this topic (#121 (comment)), but still have use case where using pool_mode=session is not an option. We used to operate clusters of applications distributed over tenths to hundreds servers with dozens processes running asynchronous event loop on each. Every process has connection pool to allow several concurrent requests to the database to be processed at the same time. All of this gives us over thousand open connections to the database (most of them are idle because we query PostgreSQL not on every incoming request). The only solution to handle this without impact on PostgreSQL performance is to use pgbouncer in pool_mode=transaction.
We have plans to provide a PR allowing to disable prepared statements. Are you still solid in your opinion or we can agree to merge this feature to upstream?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions