PostgreSQL recovery.conf 配置文件整合到 postgresql.conf

标签

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 <[email protected]>	  
Sun, 25 Nov 2018 23:31:16 +0800 (16:31 +0100)  
committer	Peter Eisentraut <[email protected]>	  
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 <[email protected]>  
Author: Simon Riggs <[email protected]>  
Author: Abhijit Menon-Sen <[email protected]>  
Author: Sergei Kornilov <[email protected]>  
Discussion: https://www.postgresql.org/message-id/flat/[email protected]/  

文档参考

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

参考

https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=2dedf4d9a899b36d1a8ed29be5efbd1b31a8fe85

猜你喜欢

转载自yq.aliyun.com/articles/700361