PgBouncer is an open source application created in 2007 by Frank McGeough.
git clone https://github.com/pgbouncer/pgbouncer
Lightweight connection pooler for PostgreSQL
View source