Postgres:内存不足

时间:2015-11-20 13:14:43

标签: postgresql

我将3GB内存分配给VMBox。对包含约3885个条目的表的列进行相似性检查,因此总共进行3885 * 3885个比较。但是我得到了这个错误:

    [23636.611505] Out of memory: Kill process 987 (postgres) score 848 or sacrifice child
    [23636.612762] Killed process 987 (postgres) total-vm:5404836kB, anon-rss:2772756kB, file-rss:828kB
    server closed the connection unexpectedly
            This probably means the server terminated abnormally
            before of while processing the request
    The connection to the server was lost. Ateempting reset: Succeeded.

仍然不知道为什么15,093,225比较导致3gb内存“内存不足”。有解决方案吗

编辑:我增加了     Shared_buffers = from 128MB to 1000MB     Working_mem = from 4MB to 50MB

但仍然是同样的错误。

Edit2:我确实解释了同样的错误。笛卡尔,因为我必须比较在单元格中导入的句子。

0 个答案:

没有答案