[未完待续] pgloader - mysql , sqlserver 迁移到 PostgreSQL - (含DDL自动迁移)

less than 1 minute read

背景

pgloader是一款开源的迁移软件,命令行操作。

支持从文本、mysql, sqlite, sqlserver迁移到PostgreSQL. 包含DDL的自动迁移。

同时在数据写入PG的过程中,支持COPY协议写入(支持记录错误行),支持并行创建索引。

功能以及导入效率都是很赞的。

https://pgloader.io/

https://pgloader.io/about/

pgLoader has two modes of operation. It can either load data from files, such as CSV or Fixed-File Format; or migrate a whole database to PostgreSQL.

pgLoader supports several RDBMS solutions as a migration source, and fetches information from the catalog tables over a connection to then create an equivalent schema in PostgreSQL. This means that you can migrate to PostgreSQL in a single command-line!

Supported operations include:

  • Migrate from MySQL to PostgreSQL
  • Migrate from SQLite to PostgreSQL
  • Migrate from MS SQL Server® to PostgreSQL

You can also migrate from database files in the DBF and IXF formats, where pgLoader can inspect the target table format for you automatically in the file headers.

ROADMAP

More sources for migrations are possible, such as Oracle™, Sybase™ or IBM Db2, see the pgloader Road Map document for details.

https://pgloader.io/roadmap/

Flag Counter

digoal’s 大量PostgreSQL文章入口