Pg_chameleon is a replication tool from MySQL to PostgreSQL developed in Python 2.7 and Python 3.3+
The system relies on the mysql-replication library to pull the changes from MySQL and covert them into a jsonb object.
A plpgsql function decodes the jsonb and replays the changes into the PostgreSQL database.
The tool requires an initial replica setup which pulls the data from MySQL in read only mode.
This is done by the tool running FLUSH TABLE WITH READ LOCK; .
The tool can pull the data from a cascading replica when the MySQL slave is configured with log-slave-updates.
Changelog from 1.0 Beta 1
- add detach replica with automatic sequence reset (no FK generation yet)
- replica speed improvement with the exclusion of BEGIN,COMMIT when capturing the queries from MySQL
- fix the capturing regexp for primary keys and foreign keys
- fix version in documentation