Skip to content

Add config table #10

@davidfetter

Description

@davidfetter

Per conversation with and thanks to @fabriziomello, modify pgbouncer_wrapper as folllows:

  • Add a config table with (bouncer_name TEXT PRIMARY KEY, bouncer_connect_string TEXT, active BOOLEAN NOT NULL DEFAULT true);
  • Instead of creating a server, do a LATERAL JOIN to the config table with the connect string instead of the server that's been dropped. The view needs to include the bouncer_name column at a minimum to disambiguate info from multiple bouncers.
  • This way, it's as easy to monitor N pgbouncers as it is to monitor one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions