【问题标题】:Restoring postgresql from backup: pg_restore running out of memory error从备份中恢复 postgresql:pg_restore running out of memory 错误
【发布时间】:2020-05-11 07:07:26
【问题描述】:

我正在尝试从生产中恢复 postgresql 备份。

当我运行 pg_restore 时,表已创建,但在尝试插入数据时进程失败。内存不足。

pg_restore: processing data for table "public.annotations"
pg_restore(39098,0x10f25b5c0) malloc: can't allocate region
mach_vm_map(size=18446744073441116160) failed (error code=3)
pg_restore(39098,0x10f25b5c0) malloc: *** set a breakpoint in malloc_error_break to debug
out of memory**

备份大小只有 29 MB。我怎样才能使恢复工作?

【问题讨论】:

    标签: postgresql heroku psql pg-restore


    【解决方案1】:

    原来是损坏的数据库备份文件。我使用了之前的备份并按预期恢复。

    【讨论】:

      猜你喜欢
      • 2020-08-14
      • 2018-08-06
      • 2022-09-28
      • 2018-08-01
      • 1970-01-01
      • 1970-01-01
      • 2019-03-20
      • 2021-09-02
      • 2016-12-05
      相关资源
      最近更新 更多