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

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

Wiki / 配置参数

wal_receiver_status_interval

指定在备库上的 WAL 接收进程向主库或上游备库发送有关复制进度的信息的最小频度,它可以使用 pg_stat_replication 视图看到。备库将报告最后写入的预写日志位置、最后刷盘的位置以及最后应用的位置。这个参数的值是报告之间的最大时间量。每次写入或刷盘位置改变时会发送状态更新,或者在此参数设置为非零值时,按其指定的频度发送。另外还会在一些情况下忽略此参数发送更新;例如,当现有的 WAL 处理完成或当 synchronous_commit 设置为 remote_apply 时。因此,应用位置可能比真实位置略微滞后。如果指定值时没有单位,则以秒为单位。默认值是 10 秒。这个参数只能在 postgresql.conf 文件中或在服务器命令行上设置。

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

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

boot val
10
category
Replication / Standby Servers
context
sighup
doc same as
未知
documented
true
enumvals
未知
extra desc
未知
lang
en
max val
2147483
metadata version
19beta4
min val
0
name
wal_receiver_status_interval
short desc
Sets the maximum interval between WAL receiver status reports to the sending server.
source
pg-settings-source-snapshot
unit
s
vartype
integer

版本定义 PG 19

指定在备库上的 WAL 接收进程向主库或上游备库发送有关复制进度的信息的最小频度,它可以使用 pg_stat_replication 视图看到。备库将报告最后写入的预写日志位置、最后刷盘的位置以及最后应用的位置。这个参数的值是报告之间的最大时间量。每次写入或刷盘位置改变时会发送状态更新,或者在此参数设置为非零值时,按其指定的频度发送。另外还会在一些情况下忽略此参数发送更新;例如,当现有的 WAL 处理完成或当 synchronous_commit 设置为 remote_apply 时。因此,应用位置可能比真实位置略微滞后。如果指定值时没有单位,则以秒为单位。默认值是 10 秒。这个参数只能在 postgresql.conf 文件中或在服务器命令行上设置。

比较版本

完整来源事实

doc html

<p>
       Specifies the minimum frequency for the WAL receiver
       process on the standby to send information about replication progress
       to the primary or upstream standby, where it can be seen using the
       <a class="link" href="/docs/19/monitoring-stats.html#MONITORING-PG-STAT-REPLICATION-VIEW" title="27.2.4. pg_stat_replication">
<code class="structname">pg_stat_replication</code></a>
       view.  The standby will report
       the last write-ahead log location it has written, the last position it
       has flushed to disk, and the last position it has applied.
       This parameter's value is the maximum amount of time between reports.
       Updates are sent each time the write or flush positions change, or as
       often as specified by this parameter if set to a non-zero value.
       There are additional cases where updates are sent while ignoring this
       parameter; for example, when processing of the existing WAL completes
       or when <code class="varname">synchronous_commit</code> is set to
       <code class="literal">remote_apply</code>.
       Thus, the apply position may lag slightly behind the true position.
       If this value is specified without units, it is taken as seconds.
       The default value is 10 seconds. This parameter can only be set in
       the <code class="filename">postgresql.conf</code> file or on the server
       command line.
      </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"}

来源引用

完整定义与证据 JSON

定义来源

center · PostgreSQL 19 · wiki-repair-20261023:0579e010ac857bed3bcef6a3dae8bff641ede07527456d5feab6c8ec1d34549c

正文语言: zh-Hans · wiki-repair-20261023:0579e010ac857bed3bcef6a3dae8bff641ede07527456d5feab6c8ec1d34549c