max_connections

A server parameter determining the maximum number of connections

max_connections is a configuration parameter determining the maximum number of concurrent connections to the database server.

max_connections was added in PostgreSQL 7.1.

Default value

The default value for max_connections is: 100.

Usage

On a standby, max_connections must be set to the same or higher value as on the primary.

The current value of max_connections is one of the GUC parameters recorded in pg_control.

Change history

Categories

Connection management, Critical standby configuration item, GUC configuration item

See also

superuser_reserved_connections