From:       To:      
Home > Documentation > PostgreSQL

Open-source Database Converters for PostgreSQL

There are multiple types of database migration: between different DBMS, between local server and the cloud, between different versions of the same system. Choice of appropriate tool depends on kind of migration and top requirements for the task. This article explores a few popular open-source database converters for PostgreSQL suitable for different scenarios of database migration.

pgdump

pg_dump is a simple back up tool for single PostgreSQL database. It does not block other users reading or writing the database and so can backup live databases that is being used concurrently. Use pg_dumpall to backup an entire cluster or global objects shared between multiple databases in cluster.

pg_dump can do output in form of script or archive file formats. Script format is plain-text containing SQL statements to rebuild the database to the state of backup point. Script files can be used to restore the database on other machines, architectures, or even on other DBMS (after some pre-processing). Archive format must be used with PostgreSQL pg_restore tool only.

pgBackRest

pgBackRest is an open-source 3rd party backup/restore tool that handles physical backups with number of enhancements compared to the classic pg_dump tool:

Ora2Pg

Ora2Pg is a free tool for Oracle to PostgreSQL database migration written in Perl. It connects to Oracle database and extracts meta-objects and/or data, then it generates relevant SQL scripts that can be imported into PostgreSQL database to generate all original entries. Key features:

See Oracle to Postgres migration with ora2pg article for further information.

pg_chameleon

pg_chameleon is MySQL to PostgreSQL database replication tool written in Python 3. It uses MySQL replication protocol to replicate changes into the target PostgreSQL database. Key features:

Have questions? Contact us