max_wal_senders
指定来自备库或流式基础备份客户端的最大并发连接数(即同时运行的 WAL 发送进程的最大数量)。默认值为 10。值 0 表示禁用复制。流式客户端突然断开连接后,可能会留下一个孤立连接槽,直到超时才释放。因此,此参数应设置得略高于预期的最大客户端数,使断开连接的客户端能够立即重新连接。此参数只能在服务器启动时设置。此外,wal_level 必须设置为 replica 或更高级别,才允许来自备库的连接。 运行备库时,必须将此参数设置为大于或等于主库上的值。否则,备库上将不允许查询。
英文手册覆盖始于 PostgreSQL 7.4. 来源历史与运行验证各自保留独立版本边界。
当前阅读 PG 19·选择有来源记录的版本
- boot val
- 10
- category
- Replication / Sending Servers
- context
- postmaster
- doc same as
- 未知
- documented
- true
- enumvals
- 未知
- extra desc
- 未知
- lang
- en
- max val
- 262143
- metadata version
- 19beta4
- min val
- 0
- name
- max_wal_senders
- short desc
- Sets the maximum number of simultaneously running WAL sender processes.
- source
- pg-settings-source-snapshot
- unit
- 未知
- vartype
- integer
版本定义 PG 19
指定来自备库或流式基础备份客户端的最大并发连接数(即同时运行的 WAL 发送进程的最大数量)。默认值为 10。值 0 表示禁用复制。流式客户端突然断开连接后,可能会留下一个孤立连接槽,直到超时才释放。因此,此参数应设置得略高于预期的最大客户端数,使断开连接的客户端能够立即重新连接。此参数只能在服务器启动时设置。此外,wal_level 必须设置为
replica 或更高级别,才允许来自备库的连接。
运行备库时,必须将此参数设置为大于或等于主库上的值。否则,备库上将不允许查询。
比较版本
完整来源事实
doc html
<p>
Specifies the maximum number of concurrent connections from standby
servers or streaming base backup clients (i.e., the maximum number of
simultaneously running WAL sender processes). The default is
<code class="literal">10</code>. The value <code class="literal">0</code> means
replication is disabled. Abrupt disconnection of a streaming client might
leave an orphaned connection slot behind until a timeout is reached,
so this parameter should be set slightly higher than the maximum
number of expected clients so disconnected clients can immediately
reconnect. This parameter can only be set at server start. Also,
<code class="varname">wal_level</code> must be set to
<code class="literal">replica</code> or higher to allow connections from standby
servers.
</p><p>
When running a standby server, you must set this parameter to the
same or higher value than on the primary server. Otherwise, queries
will not be allowed in the standby server.
</p>documentation revision
{"inputs":[{"file":"runtime-config-replication.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"76b3c1615af7dd60d031cefd485568e6336b3d13c366e8a473304bd7ef2fb92d","version":"19rc2"},{"file":"runtime-config-replication.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"935f29b71e863329c3c39caae902de37d5bbf03c2adcf42322225d3cefe71a84","version":"19rc2"}],"release":"19rc2","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"}来源引用
定义来源
center · PostgreSQL 19 · wiki-repair-20261023:2a0296dce31cba43d90f07179497635e516c25764787e489b5d131b3f1f337d7
正文语言: zh-Hans · wiki-repair-20261023:2a0296dce31cba43d90f07179497635e516c25764787e489b5d131b3f1f337d7