【问题标题】:Out of memory while restoring, Even though though there is space in memory恢复时内存不足,即使内存中有空间
【发布时间】:2020-01-19 00:59:59
【问题描述】:

我已使用以下方式从服务器备份数据库:

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】:

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

将输出传送到一个文件并读取输出的前几行。

【讨论】:

  • 当我们在restore中提到-d参数时,它如何被转储到错误的数据库中?
猜你喜欢
  • 2013-03-14
  • 2013-05-24
  • 2013-07-06
  • 2011-10-08
  • 1970-01-01
  • 2012-04-17
  • 2021-11-20
  • 1970-01-01
相关资源
最近更新 更多