vacuum_cost_delay
超过代价上限后,进程将休眠的时长。如果未指定单位,则以毫秒为单位。默认值为 0,表示禁用基于代价的清理延迟功能。正值会启用基于代价的清理。 使用基于代价的清理时,vacuum_cost_delay 的合适值通常很小,可能不到 1 毫秒。虽然 vacuum_cost_delay 可以设为以毫秒为单位的小数值,但较旧的平台可能无法准确计量这种延迟。在这些平台上,若要让 VACUUM 的资源用量超过延迟设为 1ms 时的水平,需要调整其他清理代价参数。尽管如此,仍应将 vacuum_cost_delay 设为平台能够稳定计量的尽可能小的值;较大的延迟没有帮助。
英文手册覆盖始于 PostgreSQL 7.4. 来源历史与运行验证各自保留独立版本边界。
当前阅读 PG 19·选择有来源记录的版本
- boot val
- 0
- category
- Vacuuming / Cost-Based Vacuum Delay
- context
- user
- doc same as
- 未知
- documented
- true
- enumvals
- 未知
- extra desc
- 未知
- lang
- en
- max val
- 100
- metadata version
- 19beta4
- min val
- 0
- name
- vacuum_cost_delay
- short desc
- Vacuum cost delay in milliseconds.
- source
- pg-settings-source-snapshot
- unit
- ms
- vartype
- real
版本定义 PG 19
超过代价上限后,进程将休眠的时长。如果未指定单位,则以毫秒为单位。默认值为 0,表示禁用基于代价的清理延迟功能。正值会启用基于代价的清理。
使用基于代价的清理时,vacuum_cost_delay 的合适值通常很小,可能不到 1 毫秒。虽然 vacuum_cost_delay 可以设为以毫秒为单位的小数值,但较旧的平台可能无法准确计量这种延迟。在这些平台上,若要让 VACUUM 的资源用量超过延迟设为 1ms 时的水平,需要调整其他清理代价参数。尽管如此,仍应将 vacuum_cost_delay 设为平台能够稳定计量的尽可能小的值;较大的延迟没有帮助。
比较版本
完整来源事实
doc html
<p>
The amount of time that the process will sleep when the cost
limit has been exceeded. If this value is specified without
units, it is taken as milliseconds. The default value is
<code class="literal">0</code>, which disables the cost-based vacuum delay
feature. Positive values enable cost-based vacuuming.
</p><p>
When using cost-based vacuuming, appropriate values for
<code class="varname">vacuum_cost_delay</code> are usually quite small, perhaps
less than 1 millisecond. While <code class="varname">vacuum_cost_delay</code>
can be set to fractional-millisecond values, such delays may not be
measured accurately on older platforms. On such platforms,
increasing <code class="command">VACUUM</code>'s throttled resource consumption
above what you get at 1ms will require changing the other vacuum cost
parameters. You should, nonetheless,
keep <code class="varname">vacuum_cost_delay</code> as small as your platform
will consistently measure; large delays are not helpful.
</p>documentation revision
{"inputs":[{"file":"runtime-config-vacuum.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"3f0e5420adc7c68a5733a651132a92d213aea69272cbfb2241fa49936f4ff281","version":"19rc2"},{"file":"runtime-config-vacuum.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"cadf8d7c3933a71d193ef0471416d190668fed0f4f908c6881d167b4d60e438b","version":"19rc2"}],"release":"19rc2","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"}来源引用
定义来源
center · PostgreSQL 19 · wiki-repair-20261023:b47d8d1ec79e62bdbeb9f1477900f64f98399b8435f754be46528569874d033a
正文语言: zh-Hans · wiki-repair-20261023:b47d8d1ec79e62bdbeb9f1477900f64f98399b8435f754be46528569874d033a