简体   繁体   中英

Postgres replication

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.

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

如果您没有进行复制,则提前写入日志是最简单的解决方案。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM