PostgreSQL Connection Pooling: PgBouncer, Pooling Modes, and Right-Sizing Your Pool
Learn why every PostgreSQL connection is expensive and how an external pooler like PgBouncer lets you serve thousands of clients with a handful of real connections: session, transaction and statement modes, prepared statements with max_prepared_statements (PgBouncer 1.21+), pool sizing, production-ready configuration, monitoring with SHOW POOLS, and when to consider PgCat, Supavisor or a managed pooler. With examples in Python, SQL and INI. Expanded edition: authentication with auth_query and SCRAM, TLS, Kubernetes deployment and high availability, zero-downtime operations (PAUSE/RESUME, rolling restarts), what is new in PgBouncer 1.25, observability with Prometheus, benchmarking with pgbench, integration with Node, Prisma, Django and Go, edge cases, a complete sizing walkthrough, PgCat/Supavisor/RDS Proxy, troubleshooting, timeout tuning, security hardening and an FAQ.
Verificando acceso...