如何在数据目录之外存储postgresql.conf?
发布时间:2020-12-13 16:20:47 所属栏目:百科 来源:网络整理
导读:我使用 these steps在Postgresql 9.4上设置数据库复制. 但是,当使用pg_basebackup时,我的整个数据库目录都会被复制,包括postgresql.conf文件.但是,对于主服务器和从服务器,该文件是不同的,因此在开始复制后将更改更改. 如何使用自定义数据目录运行PostgreSQL
我使用
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. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |