【问题标题】:Converting Informix schema to PostgreSQL schema将 Informix 模式转换为 PostgreSQL 模式
【发布时间】:2014-04-06 13:45:04
【问题描述】:

如何将 INFORMIX-SQL 版本 11.50.FC3 架构转换为 PostgreSQL 9.2 架构?

【问题讨论】:

标签: postgresql schema informix


【解决方案1】:

正如克雷格所说,我做了一些转换:

  1. Informix 数据库的dbexport
  2. 在架构文本文件中进行一些搜索和替换(我使用 Python 来处理这些事情)。
  3. 在 PostgreSQL 服务器上:psql -f [schema_file] new_database
  4. 分析 psql 输出,如果有问题,请删除新的 PostgreSQL 数据库,并更正搜索和替换工具(转到 2)

当您将所有有趣的东西转换为 PostgreSQL 时,您可以使用我的工具比较两种模式,例如:http://code.activestate.com/recipes/576621-dump-informix-schema-to-text/

这些工具主要用于比较 Informix 与其他 Informix 或 PostgreSQL 与其他 PostgreSQL 数据库,但经过一些规范化后,我相信您可以比较 PostgreSQL 与 Informix。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-11-03
    • 2020-01-17
    • 2014-07-02
    • 2017-07-08
    • 2021-09-12
    • 2012-10-20
    • 1970-01-01
    相关资源
    最近更新 更多