同步操作将从 yangshu007/openGauss-tools-chameleon 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
pg_chameleon is a MySQL to PostgreSQL replica system written in Python 3. The system use the library mysql-replication to pull the row images from MySQL which are stored into PostgreSQL as JSONB. A pl/pgsql function decodes the jsonb values and replays the changes against the PostgreSQL database.
pg_chameleon 2.0 is available on pypi
The documentation is available on pgchameleon.org
Live chat available on gitter
Please submit your bug reports on GitHub.
Operating system: Linux, FreeBSD, OpenBSD Python: CPython 3.5+
Optionals for building documentation
MySQL: 5.5+
PostgreSQL: 9.5+
The replica requires the tables to have a primary or unique key. Tables without primary/unique key are initialised during the init_replica process but not replicated.
The copy_max_memory is just an estimate. The average rows size is extracted from mysql's informations schema and can be outdated. If the copy process fails for memory error check the failing table's row length and the number of rows for each slice.
Python 3 is supported only from version 3.5 as required by mysql-replication .
The lag is determined using the last received event timestamp and the postgresql timestamp. If the mysql is read only the lag will increase because no replica event is coming in.
The detach replica process resets the sequences in postgres to let the database work standalone. The foreign keys from the source MySQL schema are extracted and created initially as NOT VALID. The foreign keys are created without the ON DELETE or ON UPDATE clauses. A second run tries to validate the foreign keys. If an error occurs it gets logged out according to the source configuration.
The system wide install is now supported correctly.
The configuration is set with the command chameleon set_configuration_files
in $HOME/.pg_chameleon .
Inside the directory there are three subdirectories.
You should use config-example.yaml as template for the other configuration files. Check the configuration file reference for an overview.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。