标签
PostgreSQL , recovery.conf , postgresql.conf
背景
PostgreSQL 12版本以前,配置PostgreSQL数据库恢复、流复制STANDBY,都需要配置recovery.conf,如果要修改配置,需要重启数据库。
从PostgreSQL 12开始,recovery.conf的配置文件将去掉,原有的配置内容,将整合到postgresql.conf中。并且有些配置的修改支持reload,不需要重启生效。
Integrate recovery.conf into postgresql.conf
author Peter Eisentraut <peter_e@gmx.net>
Sun, 25 Nov 2018 23:31:16 +0800 (16:31 +0100)
committer Peter Eisentraut <peter_e@gmx.net>
Sun, 25 Nov 2018 23:33:40 +0800 (16:33 +0100)
commit 2dedf4d9a899b36d1a8ed29be5efbd1b31a8fe85
tree 5564005e2fe623af69b01d56c9c72baf8ec68402 tree | snapshot
parent ab69ea9feeb9a02c6299b5c1b786005552343f22 commit | diff
Integrate recovery.conf into postgresql.conf
recovery.conf settings are now set in postgresql.conf (or other GUC
sources). Currently, all the affected settings are PGC_POSTMASTER;
this could be refined in the future case by case.
Recovery is now initiated by a file recovery.signal. Standby mode is
initiated by a file standby.signal. The standby_mode setting is
gone. If a recovery.conf file is found, an error is issued.
The trigger_file setting has been renamed to promote_trigger_file as
part of the move.
The documentation chapter "Recovery Configuration" has been integrated
into "Server Configuration".
pg_basebackup -R now appends settings to postgresql.auto.conf and
creates a standby.signal file.
Author: Fujii Masao <masao.fujii@gmail.com>
Author: Simon Riggs <simon@2ndquadrant.com>
Author: Abhijit Menon-Sen <ams@2ndquadrant.com>
Author: Sergei Kornilov <sk@zsrv.org>
Discussion: https://www.postgresql.org/message-id/flat/607741529606767@web3g.yandex.ru/
文档参考
https://www.postgresql.org/docs/devel/runtime-config-wal.html#RUNTIME-CONFIG-WAL-ARCHIVE-RECOVERY
https://www.postgresql.org/docs/devel/runtime-config-replication.html