作者
digoal
日期
2018-12-02
标签
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
参考
https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=2dedf4d9a899b36d1a8ed29be5efbd1b31a8fe85
PostgreSQL 许愿链接
您的愿望将传达给PG kernel hacker、数据库厂商等, 帮助提高数据库产品质量和功能, 说不定下一个PG版本就有您提出的功能点. 针对非常好的提议,奖励限量版PG文化衫、纪念品、贴纸、PG热门书籍等,奖品丰富,快来许愿。开不开森.
9.9元购买3个月阿里云RDS PostgreSQL实例
PostgreSQL 解决方案集合
德哥 / digoal's github - 公益是一辈子的事.





