Re: Fatal Error : Invalid Memory alloc request size 1236252631 - Mailing list pgsql-general

From Rob Sargent
Subject Re: Fatal Error : Invalid Memory alloc request size 1236252631
Date
Msg-id a110e3f6-4cf1-1706-9604-c3f20afd1082@gmail.com
Whole thread Raw
In response to Re: Fatal Error : Invalid Memory alloc request size 1236252631  (Sai Teja <saitejasaichintalapudi@gmail.com>)
Responses Re: Fatal Error : Invalid Memory alloc request size 1236252631
List pgsql-general
On 8/14/23 09:29, Sai Teja wrote:
> Could anyone please suggest any ideas to resolve this issue.
>
> I have increased the below parameters but still I'm getting same error.
>
> work_mem, shared_buffers
>
> Out of 70k rows in the table only for the few rows which is of large 
> size (700MB) getting the issue. Am unable to fetch the data for that 
> particular row.
>
> Would be appreciated if anyone share the insights.
>
> Thanks,
> Sai
>
>
Are you using java?  There's an upper limit on array size, hence also on 
String length.  You'll likely need to process the output in chunks.



pgsql-general by date:

Previous
From: David Ventimiglia
Date:
Subject: How to optimize PostgreSQL Row Security Policies that involve related tables?
Next
From: Sai Teja
Date:
Subject: Re: Fatal Error : Invalid Memory alloc request size 1236252631