Postgresql 9.0 流复制 - 进程未启动
我已遵循 postgresql wiki 二进制复制教程,但无法在主服务器或从服务器上启动 wal_sender 和 wal_receiver 进程。我在日志文件中没有看到任何相关信息来提供帮助。我可以通过 psql 从从属服务器连接到主服务器,因此我相对确定 SR 的连接配置已正确设置。任何关于设置 SR 而不使用日志传送的指示或技巧都会很棒。
I have followed the postgresql wiki binary replication tutorial and cannot get the wal_sender and wal_receiver processes to start on the master or slave server. I'm not seeing any relevant information in the log files to help. I'm able to connect via psql from my slave to my master server, so I'm relatively certain the connection configuration for SR has been setup correctly. Any pointers or tips on setting up SR without log shipping would be wonderful.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
假设您已安装 PG 并且所有设置如下:
在主服务器上:
在从属服务器上:
创建基线:
这是最难的部分。您需要获取主数据(目录)的“快照”并访问从属数据,以便它们同步启动。您可以通过多种方式执行此操作:请参阅此页面以获取简单说明:http:// /eggie5.com/15-setting-up-pg9-streaming-replication
Assuming you have PG installed and everything the settings are:
On Master:
On Slave:
Create baseline:
This is the hard part. You need to get a "snapshot" of the master data (directory) and get to to the slave so they start in synch. You can do this any number of ways: see this page for simple instructions: http://eggie5.com/15-setting-up-pg9-streaming-replication
我也有同样的问题。我将问题追溯到使用了 Martin Pitt 提供的 Postgres-9.0 软件包(因为 Ubuntu 10.10 的软件包存储库中还没有 Postgres-9* ,所以我就使用了该软件包)。我猜测他没有构建带有流复制支持的软件包。
然后我下载并安装了 PostgreSQL 提供的二进制包,流式复制开始顺利工作。
I had the same problem. I traced the problem back to having used the Postgres-9.0 package that Martin Pitt provides (which I have used since Ubuntu 10.10 doesn't have Postgres-9* in it's package repository yet). I'm guessing that he didn't build the package with streaming replication support.
I have then downloaded and installed the binary package that PostgreSQL provides and the streaming replication started to work smoothly.