我已经使用以下方法从服务器上备份了数据库:
pg_dump -U postgres -d machine -s --disable-triggers >aftrn.sql
当我尝试使用以下方法将数据恢复到本地时:
psql -U postgres -d usernet < aftrn.sql
我收到以下错误:
invalid command \N
invalid command \N
invalid command \N
out of memory
root@lap-DB3:/home/akhiles#
有人知道与什么原因或错误有关吗?
当我遇到这个问题时,是因为它一直被加载到错误的数据库中。
将输出管道到文件并读取输出的前几行。