简体   繁体   中英

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.

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?

I do not think that there is a tool for that (yet) but there is one for limited MySQL to Postgres replication:
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.
Which is probably only an option if you only have to copy a very simple set of data.

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