> ## Documentation Index
> Fetch the complete documentation index at: https://clickhouse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# postgresql_connection_* session settings

> ClickHouse session settings in the postgresql_connection_* generated group.

These settings are available in [system.settings](https://clickhouse.com/docs/reference/system-tables/settings.md) and are autogenerated from [source](https://github.com/ClickHouse/ClickHouse/blob/master/src/Core/Settings.cpp).

## postgresql\_connection\_attempt\_timeout

Type

UInt64

Default

2

Connection timeout in seconds of a single attempt to connect PostgreSQL end-point.
The value is passed as a `connect_timeout` parameter of the connection URL.

## postgresql\_connection\_pool\_auto\_close\_connection

Type

Bool

Default

0

Close connection before returning connection to the pool.

## postgresql\_connection\_pool\_retries

Type

UInt64

Default

2

Connection pool push/pop retries number for PostgreSQL table engine and database engine.

## postgresql\_connection\_pool\_size

Type

UInt64

Default

16

Connection pool size for PostgreSQL table engine and database engine.

## postgresql\_connection\_pool\_wait\_timeout

Type

UInt64

Default

5000

Connection pool push/pop timeout on empty pool for PostgreSQL table engine and database engine. By default it will block on empty pool.
