superuser_reserved_connections 是一个 配置参数,用于指定为超级用户保留的连接数。
superuser_reserved_connections 在 PostgreSQL 7.3 中添加。
用法
superuser_reserved_connections 的目的是确保超级用户即使在正常连接池(定义为 max_connections - superuser_reserved_connections)耗尽时也能成功连接。
默认值
默认值为 superuser_reserved_connections: 3。
按 PostgreSQL 版本详细信息
superuser_reserved_connections (PostgreSQL 19)
| 设置 |
3 |
| 单位 |
|
| 类别 |
连接和身份验证 / 连接设置 |
| 简短描述 |
设置保留给超级用户的连接槽数。 |
| 扩展描述 |
|
| 上下文 |
postmaster |
| 变量类型 |
整数 |
| 来源 |
默认 |
| 最小值 |
0 |
| 最大值 |
262143 |
| 枚举值 |
|
| 启动值 |
3 |
| 重置值 |
3 |
| 源文件 |
|
| 源行 |
|
| 需要重启 |
false |
文档: superuser_reserved_connections
superuser_reserved_connections (PostgreSQL 18)
| 设置 |
3 |
| 单位 |
|
| 类别 |
连接和身份验证 / 连接设置 |
| 简短描述 |
设置保留给超级用户的连接槽数。 |
| 扩展描述 |
|
| 上下文 |
postmaster |
| 变量类型 |
整数 |
| 来源 |
默认 |
| 最小值 |
0 |
| 最大值 |
262143 |
| 枚举值 |
|
| 启动值 |
3 |
| 重置值 |
3 |
| 源文件 |
|
| 源行 |
|
| 需要重启 |
false |
文档: superuser_reserved_connections
superuser_reserved_connections (PostgreSQL 17)
| 设置 |
3 |
| 单位 |
|
| 类别 |
连接和身份验证 / 连接设置 |
| 简短描述 |
设置保留给超级用户的连接槽数。 |
| 扩展描述 |
|
| 上下文 |
postmaster |
| 变量类型 |
整数 |
| 来源 |
默认 |
| 最小值 |
0 |
| 最大值 |
262143 |
| 枚举值 |
|
| 启动值 |
3 |
| 重置值 |
3 |
| 源文件 |
|
| 源行 |
|
| 需要重启 |
false |
文档: superuser_reserved_connections
superuser_reserved_connections (PostgreSQL 16)
| 设置 |
3 |
| 单位 |
|
| 类别 |
连接和身份验证 / 连接设置 |
| 简短描述 |
设置保留给超级用户的连接槽数。 |
| 扩展描述 |
|
| 上下文 |
postmaster |
| 变量类型 |
整数 |
| 来源 |
默认 |
| 最小值 |
0 |
| 最大值 |
262143 |
| 枚举值 |
|
| 启动值 |
3 |
| 重置值 |
3 |
| 源文件 |
|
| 源行 |
|
| 需要重启 |
false |
文档: superuser_reserved_connections
superuser_reserved_connections (PostgreSQL 15)
| 设置 |
3 |
| 单位 |
|
| 类别 |
连接和身份验证 / 连接设置 |
| 简短描述 |
设置保留给超级用户的连接槽数。 |
| 扩展描述 |
|
| 上下文 |
postmaster |
| 变量类型 |
整数 |
| 来源 |
默认 |
| 最小值 |
0 |
| 最大值 |
262143 |
| 枚举值 |
|
| 启动值 |
3 |
| 重置值 |
3 |
| 源文件 |
|
| 源行 |
|
| 需要重启 |
false |
文档: superuser_reserved_connections
superuser_reserved_connections (PostgreSQL 14)
| 设置 |
3 |
| 单位 |
|
| 类别 |
连接和身份验证 / 连接设置 |
| 简短描述 |
设置保留给超级用户的连接槽数。 |
| 扩展描述 |
|
| 上下文 |
postmaster |
| 变量类型 |
整数 |
| 来源 |
默认 |
| 最小值 |
0 |
| 最大值 |
262143 |
| 枚举值 |
|
| 启动值 |
3 |
| 重置值 |
3 |
| 源文件 |
|
| 源行 |
|
| 需要重启 |
false |
文档: superuser_reserved_connections
superuser_reserved_connections (PostgreSQL 13)
| 设置 |
3 |
| 单位 |
|
| 类别 |
连接和身份验证 / 连接设置 |
| 简短描述 |
设置保留给超级用户的连接槽数。 |
| 扩展描述 |
|
| 上下文 |
postmaster |
| 变量类型 |
整数 |
| 来源 |
默认 |
| 最小值 |
0 |
| 最大值 |
262143 |
| 枚举值 |
|
| 启动值 |
3 |
| 重置值 |
3 |
| 源文件 |
|
| 源行 |
|
| 需要重启 |
false |
文档: superuser_reserved_connections
superuser_reserved_connections (PostgreSQL 12)
| 设置 |
3 |
| 单位 |
|
| 类别 |
连接和身份验证 / 连接设置 |
| 简短描述 |
设置保留给超级用户的连接槽数。 |
| 扩展描述 |
|
| 上下文 |
postmaster |
| 变量类型 |
整数 |
| 来源 |
默认 |
| 最小值 |
0 |
| 最大值 |
262143 |
| 枚举值 |
|
| 启动值 |
3 |
| 重置值 |
3 |
| 源文件 |
|
| 源行 |
|
| 需要重启 |
false |
文档: superuser_reserved_connections
superuser_reserved_connections (PostgreSQL 11)
| 设置 |
3 |
| 单位 |
|
| 类别 |
连接和身份验证 / 连接设置 |
| 简短描述 |
设置保留给超级用户的连接槽数。 |
| 扩展描述 |
|
| 上下文 |
postmaster |
| 变量类型 |
整数 |
| 来源 |
默认 |
| 最小值 |
0 |
| 最大值 |
262143 |
| 枚举值 |
|
| 启动值 |
3 |
| 重置值 |
3 |
| 源文件 |
|
| 源行 |
|
| 需要重启 |
false |
文档: superuser_reserved_connections
superuser_reserved_connections (PostgreSQL 10)
| 设置 |
3 |
| 单位 |
|
| 类别 |
连接和身份验证 / 连接设置 |
| 简短描述 |
设置保留给超级用户的连接槽数。 |
| 扩展描述 |
|
| 上下文 |
postmaster |
| 变量类型 |
整数 |
| 来源 |
默认 |
| 最小值 |
0 |
| 最大值 |
262143 |
| 枚举值 |
|
| 启动值 |
3 |
| 重置值 |
3 |
| 源文件 |
|
| 源行 |
|
| 需要重启 |
false |
文档: superuser_reserved_connections
superuser_reserved_connections (PostgreSQL 9.6)
| 设置 |
3 |
| 单位 |
|
| 类别 |
连接和身份验证 / 连接设置 |
| 简短描述 |
设置保留给超级用户的连接槽数。 |
| 扩展描述 |
|
| 上下文 |
postmaster |
| 变量类型 |
整数 |
| 来源 |
默认 |
| 最小值 |
0 |
| 最大值 |
262143 |
| 枚举值 |
|
| 启动值 |
3 |
| 重置值 |
3 |
| 源文件 |
|
| 源行 |
|
| 需要重启 |
false |
文档: superuser_reserved_connections
superuser_reserved_connections (PostgreSQL 9.5)
| 设置 |
3 |
| 单位 |
|
| 类别 |
连接和身份验证 / 连接设置 |
| 简短描述 |
设置保留给超级用户的连接槽数。 |
| 扩展描述 |
|
| 上下文 |
postmaster |
| 变量类型 |
整数 |
| 来源 |
默认 |
| 最小值 |
0 |
| 最大值 |
8388607 |
| 枚举值 |
|
| 启动值 |
3 |
| 重置值 |
3 |
| 源文件 |
|
| 源行 |
|
| 需要重启 |
false |
文档: superuser_reserved_connections
superuser_reserved_connections (PostgreSQL 9.4)
| 设置 |
3 |
| 单位 |
|
| 类别 |
连接和身份验证 / 连接设置 |
| 简短描述 |
设置保留给超级用户的连接槽数。 |
| 扩展描述 |
|
| 上下文 |
postmaster |
| 变量类型 |
整数 |
| 来源 |
默认 |
| 最小值 |
0 |
| 最大值 |
8388607 |
| 枚举值 |
|
| 启动值 |
3 |
| 重置值 |
3 |
| 源文件 |
|
| 源行 |
|
文档: superuser_reserved_connections
superuser_reserved_connections (PostgreSQL 9.3)
| 设置 |
3 |
| 单位 |
|
| 类别 |
连接和身份验证 / 连接设置 |
| 简短描述 |
设置保留给超级用户的连接槽数。 |
| 扩展描述 |
|
| 上下文 |
postmaster |
| 变量类型 |
整数 |
| 来源 |
默认 |
| 最小值 |
0 |
| 最大值 |
8388607 |
| 枚举值 |
|
| 启动值 |
3 |
| 重置值 |
3 |
| 源文件 |
|
| 源行 |
|
文档: superuser_reserved_connections
superuser_reserved_connections (PostgreSQL 9.2)
| 设置 |
3 |
| 单位 |
|
| 类别 |
连接和身份验证 / 连接设置 |
| 简短描述 |
设置保留给超级用户的连接槽数。 |
| 扩展描述 |
|
| 上下文 |
postmaster |
| 变量类型 |
整数 |
| 来源 |
默认 |
| 最小值 |
0 |
| 最大值 |
8388607 |
| 枚举值 |
|
| 启动值 |
3 |
| 重置值 |
3 |
| 源文件 |
|
| 源行 |
|
文档: superuser_reserved_connections
superuser_reserved_connections (PostgreSQL 9.1)
| 设置 |
3 |
| 单位 |
|
| 类别 |
连接和身份验证 / 连接设置 |
| 简短描述 |
设置保留给超级用户的连接槽数。 |
| 扩展描述 |
|
| 上下文 |
postmaster |
| 变量类型 |
整数 |
| 来源 |
默认 |
| 最小值 |
0 |
| 最大值 |
8388607 |
| 枚举值 |
|
| 启动值 |
3 |
| 重置值 |
3 |
| 源文件 |
|
| 源行 |
|
文档: superuser_reserved_connections
superuser_reserved_connections (PostgreSQL 9.0)
| 设置 |
3 |
| 单位 |
|
| 类别 |
连接和身份验证 / 连接设置 |
| 简短描述 |
设置保留给超级用户的连接槽数。 |
| 扩展描述 |
|
| 上下文 |
postmaster |
| 变量类型 |
整数 |
| 来源 |
默认 |
| 最小值 |
0 |
| 最大值 |
536870911 |
| 枚举值 |
|
| 启动值 |
3 |
| 重置值 |
3 |
| 源文件 |
|
| 源行 |
|
文档: superuser_reserved_connections
superuser_reserved_connections (PostgreSQL 8.4)
| 设置 |
3 |
| 单位 |
|
| 类别 |
连接和身份验证 / 连接设置 |
| 简短描述 |
设置保留给超级用户的连接槽数。 |
| 扩展描述 |
|
| 上下文 |
postmaster |
| 变量类型 |
整数 |
| 来源 |
默认 |
| 最小值 |
0 |
| 最大值 |
536870911 |
| 枚举值 |
|
| 启动值 |
3 |
| 重置值 |
3 |
| 源文件 |
|
| 源行 |
|
文档: superuser_reserved_connections
superuser_reserved_connections (PostgreSQL 8.3)
| 设置 |
|
| 单位 |
|
| 类别 |
连接和身份验证 / 连接设置 |
| 简短描述 |
设置保留给超级用户的连接槽数。 |
| 扩展描述 |
|
| 上下文 |
postmaster |
| 变量类型 |
整数 |
| 来源 |
默认 |
| 最小值 |
0 |
| 最大值 |
536870911 |
文档: superuser_reserved_connections
superuser_reserved_connections (PostgreSQL 8.2)
| 设置 |
|
| 单位 |
|
| 类别 |
连接和身份验证 / 连接设置 |
| 简短描述 |
设置保留给超级用户的连接槽数。 |
| 扩展描述 |
|
| 上下文 |
postmaster |
| 变量类型 |
整数 |
| 来源 |
默认 |
| 最小值 |
0 |
| 最大值 |
536870911 |
文档: superuser_reserved_connections
变更历史