Postgresql:1个表的主从复制
帮助我选择一个简单(轻量级)的解决方案来实现两个 Postgresql 数据库之间一个表的主从复制。该表包含一个大对象。
Help me to chouse a simple (lightweight) solution to the master-slave replication of one table between two Postgresql databases. The table contains a large object.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在这里您将找到关于 PostgreSQL 复制工具的非常好的概述。请看一下,希望您能够选择一个。
否则,如果你需要一些非常轻量的东西,你可以自己做。您需要一个触发器和几个函数,一个 dblink 模块如果您需要几乎立即传播更改,否则您可以使用
cron
生存。Here you'll find a very good overview of the replication tools for PostgreSQL. Please, take a look and hopefully you'll be able to pick one.
Otherwise, if you need something really lightweight, you can do it yourself. You'll need a trigger and a couple of functions, a dblink module if you need almost immediate changes propagation, otherwise you can survive with
cron
.