Datadog PG Proxy
3 steps1 pieces3 Sources
Datadog has open-sourced PG Proxy, a production-ready PostgreSQL proxy written in Go designed to consolidate connection pooling, dynamic routing, and observability into a single access layer. The tool addresses the operational complexity of managing multiple components like PgBouncer, HAProxy, and Envoy by supporting transaction pooling with protocol-level named prepared statements and JWT-based authentication hooks. Datadog reports that its internal deployment handles four trillion queries monthly across thousands of database hosts, though this figure reflects their specific infrastructure scale rather than an independent benchmark. Key features include multi-core scaling capabilities, unlike the single-threaded nature of PgBouncer, and integration points for telemetry and identity management. The project is currently in early development, with configuration and APIs subject to change. Readers should monitor future releases for the planned inclusion of load-shedding controls and deeper Database Monitoring integrations.
How it got here
2023: Datadog's PostgreSQL Platform team began building PG Proxy after encountering limitations with existing tools like PgBouncer, specifically regarding multi-core scaling and prepared statement support in transaction pooling.
datadoghq.dev ↗October 2023: Competitor PgBouncer released version 1.21.0, adding support for protocol-level named prepared statements with transaction pooling, a feature Datadog had previously built into their custom proxy.
datadoghq.com ↗December 1, 2026: Datadog officially open-sourced PG Proxy, publishing the Go library and binary along with documentation on how to deploy it for self-managed and cloud-hosted PostgreSQL databases.