> ## 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_* 会话设置

> postgresql_connection_* 自动生成组中的 ClickHouse 会话设置。

这些设置可在 [system.settings](https://clickhouse.com/docs/zh/reference/system-tables/settings.md) 中找到，并由 [源代码](https://github.com/ClickHouse/ClickHouse/blob/master/src/Core/Settings.cpp) 自动生成。

## postgresql\_connection\_attempt\_timeout

类型

UInt64

默认值

2

单次连接 PostgreSQL 端点的连接超时时间，单位为秒。
该值会作为连接 URL 的 `connect_timeout` 参数传递。

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

类型

Bool

默认值

0

在将连接返回到连接池之前关闭该连接。

## postgresql\_connection\_pool\_retries

类型

UInt64

默认值

2

用于 PostgreSQL 表引擎和数据库引擎的连接池 push/pop 重试次数。

## postgresql\_connection\_pool\_size

类型

UInt64

默认值

16

PostgreSQL 表引擎和数据库引擎的连接池大小。

## postgresql\_connection\_pool\_wait\_timeout

类型

UInt64

默认值

5000

PostgreSQL 表引擎和数据库引擎中，连接池为空时 push/pop 操作的超时时间。默认情况下，连接池为空时会阻塞等待。
