Re: BUG #13526: Out of memory when parallelised

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: philippe_sabaa(at)hotmail(dot)fr
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #13526: Out of memory when parallelised
Date: 2015-07-29 16:24:31
Message-ID: 31851.1438187071@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

philippe_sabaa(at)hotmail(dot)fr writes:
> We're running in an out of memory exception (failed on request of size
> Failed on request of size 775).

Looks to me like you need to reduce work_mem. Keep in mind that a
statement can consume work_mem for each sort or hash operation, and
this one seems to be running four separate hash joins.

Also, it's hard to tell from the information provided, but I wonder if
this is a 32-bit build of Postgres. If so, switching to a 64-bit build
would give you a lot more headroom.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Bobby Rullo 2015-07-29 16:50:28 Re: BUG #13524: Not Getting expected Serialization error
Previous Message Tom Lane 2015-07-29 16:00:27 Re: BUG #13518: CancelRequest lacks statement identifier