idle_in_transaction_session_timeout
英文手册覆盖始于 PostgreSQL 7.4. 来源历史与运行验证各自保留独立版本边界。
当前阅读 PG 18·选择有来源记录的版本
- boot val
- 0
- category
- Client Connection Defaults / Statement Behavior
- context
- user
- documented
- true
- enumvals
- 未知
- extra desc
- 0 disables the timeout.
- lang
- en
- max val
- 2147483647
- metadata version
- 18
- min val
- 0
- name
- idle_in_transaction_session_timeout
- short desc
- Sets the maximum allowed idle time between queries, when in a transaction.
- source
- pg-settings-source-snapshot
- unit
- ms
- vartype
- integer
版本定义 PG 18
终止在打开的事务中空闲(即等待客户端查询)超过指定时长的任何会话。如果指定值时不带单位,则以毫秒为单位。零值(默认值)禁用此超时。
此选项可确保空闲会话不会持有锁过长时间。即使没有持有重要的锁,打开的事务也会阻止清理最近死亡、且可能只对该事务可见的元组;因此长时间空闲可能造成表膨胀。更多详情参见第 24.1 节。
比较版本
来源引用
定义来源
center · PostgreSQL 18 · english-manuals:ef09b7be61a077b9dbe841d7eda4f8386d0873566381ca73d580fcc540ddec20
正文语言: zh-Hans · 2026-09-11@29c86d9