Skip to content

Add support for automatic pool (similar to pgbouncer) #362

Open

Description

@pinaraf

Is your feature request related to a problem? Please describe.
For some applications, it may not be possible to list all databases the application can connect to (for instance when each customer has his own database). For these, it's better to use a feature similar to the automatic pool in pgbouncer, cf. https://www.pgbouncer.org/config.html section databases.

Describe the solution you'd like
Be able to describe an automatic pool generator in the configuration.

Describe alternatives you've considered
None known

Additional context
None

Activity

  1. levkk commented on Mar 14, 2023

    @levkk
    Contributor

    Hi there,

    I've never used that feature of PgBouncer. Could you give me an example of how it works?

    Thanks!

  2. pinaraf commented on Mar 14, 2023

    @pinaraf
    Author

    Hi

    In pgbouncer.ini:

    [databases]
    * = host=my.server.org port=5432
    

    When a client connects to the bouncer and asks for the database demo, it will spawn a new pool, named demo, for the database demo on my.server.org:5432.
    If the client disconnects, the pool will remain "forever" or until autodb_idle_timeout is reached.
    The usual server_idle_timeout and server_lifetime rules apply.

    Regards

  3. adriangb commented on Jan 31, 2024

    @adriangb
    Contributor

    +1 for this feature. I specifically need users wildcards.

  4. AndrewJackson2020 commented on Apr 26, 2024

    @AndrewJackson2020
    Contributor

    +1 for this feature, without it there ends up being a lot of boilerplate and manual upkeep in an environment with a large number of databases and users.

  5. strelkovia commented on May 31, 2024

    @strelkovia

    Hi
    +1 for this feature

  6. bharling commented on Aug 14, 2024

    @bharling

    Hallo! +1 from me too please, this would be really useful

  7. giovanniborella commented on Aug 30, 2024

    @giovanniborella

    +1 much needed for use-case

  8. rvsoni commented on Nov 17, 2024

    @rvsoni

    I implemented #855 to have PGBouncer pool proxy implementation.

    Try this PR #855 or you can use my Repo @rvsoni/pgcat with fix,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions