00 /What You Will Learn
By the end you will be able to
- Explain a connection pool and why requests wait for a free connection.
- Explain pool exhaustion, and why a slow call inside a transaction causes it.
- Tell statement_timeout from idle_in_transaction_session_timeout and say what each one stops.
- Show a connection leak and the context manager that prevents it.
- Explain the max_connections limit and what a pooler like PgBouncer is for.
Before you start
Finish Lab 05 (SQL Transactions and Isolation) first. You should know BEGIN and COMMIT. Docker Desktop and Python 3 are needed.