↑↓ 选择↵ 打开⌫ 切换范围完整搜索

PG.CENTER 连接 PostgreSQL 文档、百科与生态知识。由 Pigsty 维护。

Wiki / 配置参数

reserved_connections

英文手册覆盖始于 PostgreSQL 7.4. 来源历史与运行验证各自保留独立版本边界。

当前阅读 PG 18·选择有来源记录的版本

boot val
0
category
Connections and Authentication / Connection Settings
context
postmaster
documented
true
enumvals
未知
extra desc
未知
lang
en
max val
262143
metadata version
18
min val
0
name
reserved_connections
short desc
Sets the number of connection slots reserved for roles with privileges of pg_use_reserved_connections.
source
pg-settings-source-snapshot
unit
未知
vartype
integer

版本定义 PG 18

确定为具有 pg_use_reserved_connections 角色权限的角色保留多少个连接“槽”。当空闲连接槽的数量大于superuser_reserved_connections,但小于或等于 superuser_reserved_connections 与 reserved_connections 之和时,新连接将只接受超级用户以及具有 pg_use_reserved_connections 角色权限的角色。如果可用连接槽的数量小于或等于 superuser_reserved_connections,则新连接只接受超级用户。

默认值为零个连接。该值必须小于 max_connections 减去 superuser_reserved_connections。此参数只能在服务器启动时设置。

比较版本

来源引用

完整定义与证据 JSON

定义来源

center · PostgreSQL 18 · english-manuals:aa3c0638ec9b81453a41c08cc249aceab336eae40164c45ef5009ba56c3341b0

正文语言: zh-Hans · 2026-09-11@29c86d9