Skip to content

Correctly identify PgDog poolers #22

Description

@paul-enz

The problem

Hi @alexshapalov thanks for this useful tool! I'm interested in using PgBot and I have a couple of ideas for contributions. I'll create them as issues to see if you're interested in accepting changes to support them 😄 Let me know what you think.

Problem

PgBot currently treats hostnames containing -pooler as Neon pooled
endpoints. This incorrectly labels other (e.g. PgDog) installations that use custom domains.

Hostname and port conventions are deployment-specific and should not determine
whether a connection uses PgDog.

Proposed change

Add behavior-based PgDog detection using a PgDog-specific startup option that
PgDog consumes instead of forwarding to PostgreSQL.

Restrict Neon detection to native Neon pooled endpoint domains. Preserve
existing generic pooler detection for PgBouncer, Supabase, and unknown
transaction poolers.

Acceptance criteria

  • PgDog connections are reported as PgDog.
  • Detection works with custom PgDog hostnames and ports.
  • No hostname specific to one deployment is used as a PgDog detection hint.

Activity

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 request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions