Re: Fatal Error : Invalid Memory alloc request size 1236252631

From: Rob Sargent <robjsargent(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Fatal Error : Invalid Memory alloc request size 1236252631
Date: 2023-08-14 17:25:27
Message-ID: a110e3f6-4cf1-1706-9604-c3f20afd1082@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Sai Teja 2023-08-14 17:31:19 Re: Fatal Error : Invalid Memory alloc request size 1236252631
Previous Message David Ventimiglia 2023-08-14 16:36:41 How to optimize PostgreSQL Row Security Policies that involve related tables?