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.
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
-pooleras Neon pooledendpoints. 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