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

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

Wiki / 配置参数

max_pred_locks_per_relation

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

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

boot val
-2
category
Lock Management
context
sighup
documented
true
enumvals
未知
extra desc
If more than this total of pages and tuples in the same relation are locked by a connection, those locks are replaced by a relation-level lock.
lang
en
max val
2147483647
metadata version
18
min val
-2147483648
name
max_pred_locks_per_relation
short desc
Sets the maximum number of predicate-locked pages and tuples per relation.
source
pg-settings-source-snapshot
unit
未知
vartype
integer

版本定义 PG 18

这个参数控制在谓词锁被提升为覆盖整个关系之前,可以对单个关系中的多少页面或元组加谓词锁。大于等于零的值表示一种绝对限制,而负值表示用max_pred_locks_per_transaction除以这个设置的绝对值。默认值为-2,它将保持以往版本的PostgreSQL中的行为。这个参数只能在postgresql.conf文件中或者服务器命令行上设置。

比较版本

来源引用

完整定义与证据 JSON

定义来源

center · PostgreSQL 18 · english-manuals:0846f83420f543293f9d9f72c0d575c01dacf7224f309f4c93847181fffc3aa5

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