恢复时内存不足,即使内存中有空间

问题描述 投票:1回答:1

我已经使用以下方法从服务器上备份了数据库:

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# 

有人知道与什么原因或错误有关吗?

postgresql psql pg-dump
1个回答
0
投票

当我遇到这个问题时,是因为它一直被加载到错误的数据库中。

将输出管道到文件并读取输出的前几行。

© www.soinside.com 2019 - 2024. All rights reserved.