00 /What You Will Learn
- Explain PostgreSQL process-per-connection architecture and why direct connections degrade database performance under high client counts.
- Reproduce session pool starvation: observe how idle client connections lock physical backend connections and block new queries.
- Multiplex hundreds of concurrent client connections over a tiny pool of physical connections using transaction pooling.
- Identify the transaction pooling caveat: why session variables, temporary tables, and prepared statements behave differently when connections recycle after every
COMMIT. - Apply SET LOCAL to safely scope configuration parameters to a single transaction without leaking state across tenants.
Before you start
Complete Lab 01 (Docker Compose Basics) and Lab 13 (Database Connection Pool Exhaustion) first. You should understand database connection limits and transaction boundaries (BEGIN, COMMIT, ROLLBACK). Docker Desktop must be running.