---
title: "PgDog vs. RDS Proxy"
description: "PgDog avoids RDS Proxy's connection pinning, which silently disables transaction pooling when apps use SET, temporary tables, advisory locks, or queries over 16 KB, and can exhaust Postgres connections."
url: "https://swe.quest/articles/pgdog-vs-rds-proxy-54748e0d30fc5847"
canonical: "https://pgdog.dev/blog/pgdog-vs-rds-proxy"
source: "PgDog"
published: "2026-08-17"
difficulty: "medium"
kind: "Opinion"
reading_minutes: 5
tags: ["postgres","load-balancing","scalability","cloud","performance"]
---

# PgDog vs. RDS Proxy

A post on [PgDog](https://swe.quest/sources/pgdog.md), published 2026-08-17, 5 min read, Opinion. Original: [https://pgdog.dev/blog/pgdog-vs-rds-proxy](https://pgdog.dev/blog/pgdog-vs-rds-proxy)

## Summary

PgDog avoids RDS Proxy's connection pinning, which silently disables transaction pooling when apps use SET, temporary tables, advisory locks, or queries over 16 KB, and can exhaust Postgres connections. PgDog instead transplants session state between server connections and parses queries up to 1 GB with a built-in Postgres parser. Its multithreaded design shares one pool across many clients, whereas RDS Proxy's autoscaled instances each keep separate pools and open more database connections. A pgbench SELECT 1 benchmark shows PgDog roughly 2x faster. The tradeoff is self-hosting via Helm or an experimental ECS Terraform module.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [Load balancing](https://swe.quest/tags/load-balancing.md) (Infrastructure)
- [Scaling](https://swe.quest/tags/scalability.md) (Distributed systems)
- [Cloud platforms](https://swe.quest/tags/cloud.md) (Infrastructure)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)

## Prerequisites

- PostgreSQL connection pooling ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- transaction-mode pooling
- Kubernetes Helm ([easy posts on Kubernetes](https://swe.quest/tags/kubernetes.md?difficulty=easy))

## Keywords

PgDog, RDS Proxy, AWS RDS, pgbench, Helm, PgBouncer

## Related posts

- [PGKeeper: Building the bouncer we needed for Postgres](https://swe.quest/articles/pgkeeper-building-the-bouncer-we-needed-for-postgres-b0a410376e101175.md): Figma · 2026-05-04 · Medium · 19 min read · PostgreSQL, Resilience, Go, Databases, Scaling
  Figma replaced PgBouncer with PGKeeper, a Go service built on PGX that sits between its DBProxy router and each Postgres instance.
- [Let Your AWS Lambdas Survive Thousands of Connections](https://swe.quest/articles/let-your-aws-lambdas-survive-thousands-of-connections-95ac0e1f5340c6dd.md): Neon · 2024-12-02 · Medium · 13 min read · Serverless, PostgreSQL, Cloud platforms, JavaScript, Scaling
  Lambda's per-instance database connections can overwhelm Aurora Serverless v2 during traffic spikes, causing connection exhaustion, lingering zombie connections and cold-start latency, and RDS Proxy adds cost, pinning issues and borrow latency without fully fixing it.
- [PgBouncer is now available in Supabase](https://swe.quest/articles/pgbouncer-is-now-available-in-supabase-7611d240679e4c4c.md): Supabase · 2021-04-02 · Medium · 4 min read · PostgreSQL, Serverless, Scaling
  Supabase now bundles PgBouncer, co-located on the same server as each new project's Postgres, so serverless functions that open a connection per request don't overwhelm the database.
- [How we scale PgBouncer in ClickHouse Managed Postgres](https://swe.quest/articles/how-we-scale-pgbouncer-in-clickhouse-managed-postgres-130231ec324c9f46.md): ClickHouse · 2026-07-01 · Medium · 4 min read · PostgreSQL, Performance engineering, Load balancing, Linux, Scaling
  Because PgBouncer is single-threaded, ClickHouse Managed Postgres runs a fleet of PgBouncer processes sized to the core count, all binding one port via so\_reuseport so the kernel load-balances connections behind a single endpoint.
- [Supavisor 1.0: a scalable connection pooler for Postgres](https://swe.quest/articles/supavisor-1-0-a-scalable-connection-pooler-for-postgres-561015cc29e3cac0.md): Supabase · 2023-12-13 · Medium · 3 min read · PostgreSQL, Elixir & Erlang, Load balancing, Replication
  Supavisor 1.0, Supabase's Elixir-based Postgres connection pooler, is production-ready and adds query load balancing, named prepared statement support in transaction mode, and query cancelation.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
