Error in creating SEQUENCEs when restoring the PostgreSQL database

后端 未结 2 2118
梦谈多话
梦谈多话 2020-12-17 15:23

UserX has following grants:

CREATE ROLE \"UserX\" LOGIN PASSWORD \'pass\';
CREATE DATABASE \"DBX\" WITH OWNER=\"UserX\" ENCODING=\'UTF8\' TABLESPACE         


        
2条回答
  •  清歌不尽
    2020-12-17 15:51

    You are trying to restore a dump from a v10 database into an older version of PostgreSQL (CREATE SEQUENCE ... AS is new in v10).

    That is not supported and won't work. You can create an SQL script with pg_restore and edit it manually. Or upgrade the destination database.

提交回复
热议问题