简体   繁体   English

从PostgreSQL到MySQL / MemSQL的流复制

[英]Streaming replication from PostgreSQL to MySQL/MemSQL

I have two database systems currently in use in production: the main PostgreSQL database, and another database ( MemSQL ) used primarily for analytical purposes. 我有两个当前正在生产中使用的数据库系统:主PostgreSQL数据库和另一个主要用于分析目的的数据库( MemSQL )。

Is there a way to setup streaming replication of some of the tables in PostgreSQL to MemSQL (a MySQL-compatible database) rowstores, assuming the tables on both databases have the same schema? 假设两个数据库中的表具有相同的架构,是否可以设置将PostgreSQL中某些表的流复制复制到MemSQL(与MySQL兼容的数据库)行存储的方法?

I do not think that there is a tool for that (yet) but there is one for limited MySQL to Postgres replication: 我认为还没有针对该工具的工具,但是有一种工具可以将MySQL限制为Postgres复制:
https://github.com/the4thdoctor/pg_chameleon https://github.com/the4thdoctor/pg_chameleon
Maybe this can be adapted to work the other way. 也许可以将其调整为其他方式。

And you could always build your own little data shovel by using the NOTIFY/LISTEN feature of Postgres. 而且,您始终可以使用Postgres的NOTIFY / LISTEN功能来构建自己的小数据铲。
Which is probably only an option if you only have to copy a very simple set of data. 如果您只需要复制一组非常简单的数据,那么这可能只是一个选择。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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