Skip to content

Compare poolers

PG Proxy is useful when an application needs to compose PostgreSQL pooling with its own authentication, routing configuration, admission policy, and telemetry. PgBouncer, Pgpool-II, Odyssey, and PgDog offer standalone poolers with established configuration and administration interfaces.

This comparison describes the current PG Proxy checkout and upstream documentation reviewed on October 14, 2026. PG Proxy ships as the pg-proxy binary and as a Go library. The tables compare documented capabilities, not measured performance.

Start with the operating model you need. These are starting points for evaluation, not a ranking.

PoolerWhen to evaluate itPooling
PG Proxy Run the standalone pg-proxy binary, or embed pooling in a Go application. Transaction
PgBouncer Run a standalone connection pooler. Session, transaction, statement
Pgpool-II Combine read balancing and failover. Connections reused between sessions
Odyssey Set pool policies per database and user. Session, transaction
PgDog Combine pooling, read balancing, and sharding. Session, transaction

Pooling documentation: PgBouncer, Pgpool-II, Odyssey, PgDog.

PG Proxy’s main distinction is its embedding model. The Go API may change between releases. See Features for its current capabilities.

Each table covers one area. Follow the source links for configuration details and limitations.

PoolerIntegration
PG Proxy Standalone binary with a YAML or JSON file, or an embeddable Go library where the application supplies operating policies.
PgBouncer Standalone pooler configured through INI. Configuration.
Pgpool-II Standalone middleware for pooling, read balancing, and high availability. Overview.
Odyssey Standalone pooler with worker threads and database/user routing rules. Project overview.
PgDog Standalone Rust pooler and router using pgdog.toml and users.toml. Configuration.
PoolerPrepared statements in transaction pooling
PG Proxy Named and unnamed protocol-level statements across backend connections; optional caching of unnamed statements, turned on by each client with pg_proxy.auto_cached_prepared_statements.
PgBouncer Protocol-level named statements with nonzero max_prepared_statements. Setting.
Pgpool-II Not applicable: backend reuse happens between sessions, rather than transactions. Pooling.
Odyssey Supported with pool_reserve_prepared_statement. Pooling documentation.
PgDog Named-statement cache and optional SQL-level rewriting; unnamed statements pass through uncached. Statements.
PoolerRouting
PG Proxy SQL classification, weighted read clusters, and replica pool selection.
PgBouncer Database-to-host mappings; read/write destination selection belongs to the client or surrounding infrastructure. FAQ.
Pgpool-II Read/write routing and replica balancing, with session-level or statement-level read destination selection. Routing.
Odyssey Database/user rules and primary/standby selection through target_session_attrs. Routing.
PgDog Read/write splitting, replica balancing, and sharding with cross-shard query handling. Overview.
PoolerObservability
PG Proxy The binary exports logs, metrics, and query traces over OTLP/HTTP, or sends traces and DogStatsD metrics to the Datadog Agent and writes JSON logs to stderr. The library exposes logging, metrics, and tracing interfaces.
PgBouncer Administrative SHOW commands, pool statistics, and logs. Administration.
Pgpool-II SQL commands expose nodes, pools, processes, health checks, and backend query statistics. Administration.
Odyssey Connection identifiers in logs, an administrative console, and Prometheus exporter support. Overview, console, metrics.
PgDog Administrative database, OpenMetrics endpoint, and OpenTelemetry metrics export. Monitoring, metrics.

Pgpool-II also provides Watchdog for availability of Pgpool-II itself. Overview.

For PgDog, check its supported SQL and sharding restrictions against your workload. For PG Proxy, see Prepared statements, Read routing, and Observability.

Compatibility matters more than a checkbox

Section titled “Compatibility matters more than a checkbox”

Prepared-statement support generally refers to PostgreSQL protocol messages. It does not imply arbitrary SQL PREPARE commands or all session-scoped state work across pooled transactions. PgBouncer documents this distinction in its feature map; PG Proxy’s compatibility reference describes its own boundaries.

Pgpool-II reuses backend connections after client sessions end. Its statement_level_load_balance setting chooses a read destination per query; it does not provide transaction or statement pooling across clients. Account for this distinction when sizing backend connections. Connection pooling, read balancing.

PgDog additionally offers SQL PREPARE rewriting with prepared_statements = "full". Its documentation says unnamed statements are passed through without caching, and SQL EXECUTE for sharded prepared statements is not supported. These differ from PG Proxy’s optional unnamed-statement caching. PgDog prepared statements.

Replica routing also changes consistency. A pooler’s ability to send reads to replicas does not establish read-after-write guarantees. PG Proxy’s routing explanation documents its limitations.

Benchmarks reports PG Proxy’s own pgbench results; it does not compare poolers. Threading model or feature count alone does not establish which pooler is faster.

For a meaningful comparison, keep PostgreSQL, hardware, client drivers, TLS, pool sizes, query mix, and concurrency consistent. Measure throughput, tail latency, CPU, memory, and behavior when pools are full or backends fail. Include the prepared-statement and transaction patterns your application actually uses.