我使用
these steps在Postgresql 9.4上设置数据库复制.
但是,当使用pg_basebackup时,我的整个数据库目录都会被复制,包括postgresql.conf文件.但是,对于主服务器和从服务器,该文件是不同的,因此在开始复制后将更改更改.
如何使用自定义数据目录运行Postgresql,但是在该目录之外使用postgresql.conf?
我正在使用CentOS7.
使用–write-recovery-conf设置备用服务器.
--write-recovery-conf Write a minimal recovery.conf in the output directory (or into the base archive file when using tar format) to ease setting up a standby server. The recovery.conf file will record the connection settings and,if specified,the replication slot that pg_basebackup is using,so that the streaming replication will use the same settings later on.
原文地址:https://www.jb51.cc/postgresql/192274.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。