Chapter 57. Connection Pooling

Table of Contents

57.1. Usage
57.1.1. Command line switches
57.1.2. Admin console
57.2. pgbouncer.ini
57.2.1. Generic settings
57.2.2. Authentication settings
57.2.3. Console access control
57.2.4. Connection sanity checks, timeouts
57.2.5. TLS settings
57.2.6. Section [databases]

PostgreSQL Enterprise Server (PgES) provides connection pooling support through the PgBouncer Lightweight connection pooler that is included in the PgES distribution.

PgBouncer is a PostgreSQL connection pooler. Any target application can be connected to pgbouncer as if it were a PostgreSQL server, and pgbouncer will create a connection to the actual server, or it will reuse one of its existing connections. The aim of pgbouncer is to lower the performance impact of opening new connections to PostgreSQL. In order not to compromise transaction semantics for connection pooling, PgBouncer supports several types of pooling when rotating connections:

The administration interface of pgbouncer consists of some new SHOW commands available when connected to a special "virtual" database pgbouncer.