Rus*_*lan 0 database postgresql pg-restore
我以这种方式创建了 PostgresSQL 数据库的备份:
/usr/bin/pg_dump --no-owner --no-acl > dump.sql
当我尝试在另一台机器上恢复时:
psql db < dump.sql 它引发了许多错误: invalid command \N
当我尝试使用pg_restore:
pg_restore dump.sql -d db
不同的错误: pg_restore: [archiver] input file appears to be a text format dump. Please use psql.
根据文档,这应该不是问题。
有什么方法可以告诉psql\N 字符是空值?
哦,你好,是我
确保:
\N涌入之前获得第一个错误psql -d database -f backup.sql -U user 应该做导入的技巧还要吃得健康,好好休息。再见