Postgres replication

本秂侑毒 提交于 2021-02-08 18:35:00

问题


Right now I have a database (about 2-3 GB) in PostgreSQL, which serves as a data storage to RoR/Python LAMP-like application.

What kind tools are there that are simple and robust enough for replication of the main database to a second machine?

I looked through some packages (Slony-I and etc.) but it would be great to hear real-life stories as well.

Right now I'm not concerned with load balancing and etc. I am thinking about using simple Write-Ahead-Log strategy for now.


回答1:


If you are not doing replication, Write ahead Logs are the simplest solution.




回答2:


If you can upgrade to pg 9 I would looking to streaming replication - very simple setup. Or if you can't upgrade you can just look at a hot-standby (which you can query to).

See here: http://eggie5.com/15-setting-up-pg9-streaming-replication



来源:https://stackoverflow.com/questions/81404/postgres-replication

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!