Postgres得到旧版本的架构?

时间:2018-04-21 15:50:44

标签: postgresql

如何在postgres中导出旧版本的表格架构?

我有一个系统10.0,但我需要导出一个9.2.23系统,在我的情况下会产生一个不兼容的命令。

是否可以生成向下兼容的架构?

//hypothetical extract from a's build.gradle
...
task addTask {
    foo(project, ['param1','param2'])
}

//root's build.gradle
ext.foo = { Project prj, List<String> params ->
    params.each {
        p -> task "addedTask-${p}"() {
            println 'hello'
        }
    }
}

此架构的输出为:

public int[][] locateZero(int[][] array) {
    int[][] coordinates = new int[1][1];
    for (int i=0; i < array.length; i++) {
        for (int j=0; j < array[0].length; j++) {
            if (array[i][j] == 0) {
                coordinates[0][0]=i;
                coordinates[0][1]=j;
                break;
            }
        }
    }
    return coordinates;
}

我正在使用我的Mac上的postgress应用程序,因此为此安装旧版本似乎很麻烦。有一个简单的方法吗?

1 个答案:

答案 0 :(得分:1)

没有支持的方法来执行此操作。

您必须手动编辑转储,直到加载到9.2。

你真的不应该再使用9.2,因为它不受支持。

相关问题