Skip to main content

MySQL to PostgreSQL replica and migration

Project description

pg_ninja is a tool for replicating from MySQL to PostgreSQL compatible with Python 3.3+. The system use the library mysql-replication to pull the row images from MySQL which are transformed into a jsonb object. A pl/pgsql 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; .

pg_ninja can pull the data from a cascading replica when the MySQL slave is configured with log-slave-updates.

The tool supports real time obfuscation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pg_ninja-2.0.0a1.tar.gz (64.8 kB view details)

Uploaded Source

File details

Details for the file pg_ninja-2.0.0a1.tar.gz.

File metadata

  • Download URL: pg_ninja-2.0.0a1.tar.gz
  • Upload date:
  • Size: 64.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/28.8.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.4

File hashes

Hashes for pg_ninja-2.0.0a1.tar.gz
Algorithm Hash digest
SHA256 7a076610466a9915673681c55854e1971bb2c7f393fa0e687c9638f50d30d19e
MD5 948906f0da653496c4da4629564084e8
BLAKE2b-256 4b9ce739f9f8d961bf00ac25ced2ba5a93d61cbaaae6bac4bfad808c8c16ab57

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page