Re: out of memory - Mailing list pgsql-bugs

From Tom Lane
Subject Re: out of memory
Date
Msg-id 20196.1155674917@sss.pgh.pa.us
Whole thread Raw
In response to out of memory  ("Anita Lederer" <anita.lederer@googlemail.com>)
Responses Re: out of memory  ("Anita Lederer" <anita.lederer@googlemail.com>)
List pgsql-bugs
"Anita Lederer" <anita.lederer@googlemail.com> writes:
> i have a statement which ends with
>   ERROR:  out of memory
>   DETAIL:  Failed on request of size 639.

Do you have work_mem set to a large value?  Your query plan contains
several sorts so would potentially try to use several times work_mem
... if that's more than the kernel will allow one process to have,
you would get a failure like this.

The other theory that comes to mind is that you've discovered an
intraquery memory-leak bug, but there's not nearly enough information
here to find it if so.

The out-of-memory error should result in dumping a list of memory
context statistics into the postmaster's log file --- if you can post
that information it would be helpful.

            regards, tom lane

pgsql-bugs by date:

Previous
From: tomas@tuxteam.de
Date:
Subject: Re: BUG #2577: Notice: Only variable references should be retur..
Next
From: Fujii Masao
Date:
Subject: Re: BUG #2576: tcp_keepalive doesn't work