【发布时间】:2018-01-23 21:46:21
【问题描述】:
我正在使用最新版本的 PostgreSQL 和 Pgadmin 4。 我正在尝试从 git 导入这个数据库:https://github.com/pthom/northwind_psql
我尝试加载 sql 文件作为恢复,并收到此错误:
【问题讨论】:
标签: sql database postgresql import northwind
我正在使用最新版本的 PostgreSQL 和 Pgadmin 4。 我正在尝试从 git 导入这个数据库:https://github.com/pthom/northwind_psql
我尝试加载 sql 文件作为恢复,并收到此错误:
【问题讨论】:
标签: sql database postgresql import northwind
此文件不适用于 pg_restore。您应该只在 psql 上执行它。
pg_restore 是一个实用程序,用于从 pg_dump 创建的非纯文本格式之一的存档中恢复 PostgreSQL 数据库。
查看 GitHub shell 脚本上的 create_db 以了解如何导入它。
【讨论】: