Connection Pooling with PgBouncer in PostgreSQL

PostgreSQL connections are expensive. Each one is a separate operating-system process with its own memory, and Postgres runs well with a few hundred of them, not thousands.