Skip to content
Theory · PostgreSQL Replication and Scaling · lesson 7 of 12

Connection pooling and PgBouncer

At the head office each clerk sits at a desk of his own, and there are few desks: each one costs money and room. But thousands of customers come in a day, and most of them think for half a minute before asking anything. Giving each customer a desk and a clerk of their own would ruin the chain.

In this lesson

  • A process per connection
  • A connection pool
  • Three pool modes
  • What breaks in transaction mode
  • Common mistake
  • Key points