recovery_end_command
英文手册覆盖始于 PostgreSQL 7.4. 来源历史与运行验证各自保留独立版本边界。
当前阅读 PG 18·选择有来源记录的版本
- boot val
- 未知
- category
- Write-Ahead Log / Archive Recovery
- context
- sighup
- documented
- true
- enumvals
- 未知
- extra desc
- 未知
- lang
- en
- max val
- 未知
- metadata version
- 18
- min val
- 未知
- name
- recovery_end_command
- short desc
- Sets the shell command that will be executed once at the end of recovery.
- source
- pg-settings-source-snapshot
- unit
- 未知
- vartype
- string
版本定义 PG 18
这个参数指定了一个将只在恢复末尾被执行一次的 shell 命令。这个参数是可选的。recovery_end_command的目的是为复制或恢复之后的清除提供一种机制。与archive_cleanup_command中相似,任何%r会被替换为包含最后一个可用重启点的文件的名称。
如果该命令返回一个非零退出状态,则一个警告日志消息将被写出并且不管怎样该数据库将继续启动。一个例外是如果该命令被一个信号或者 shell 错误(例如命令未找到)中止,该数据库将不会继续启动。
这个参数只能在postgresql.conf文件中或通过服务器命令行进行设置。
比较版本
来源引用
定义来源
center · PostgreSQL 18 · english-manuals:bf8c29973f1b56197a7d190f3d6a8b0d3c3deb12e730faae8f975e30fc639509
正文语言: zh-Hans · 2026-09-11@29c86d9