Re: Invalid memory alloc request size for repeat()

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Japin Li <japinli(at)hotmail(dot)com>
Cc: "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Invalid memory alloc request size for repeat()
Date: 2022-05-25 14:41:11
Message-ID: CAKFQuwYd+M7pgpz=ZtQc8ymXfJEg6QoJJep1vgyH1Z=by64O4A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wednesday, May 25, 2022, Japin Li <japinli(at)hotmail(dot)com> wrote:

>
> Hi,
>
> Today, I try to use repeat() to generate 1GB text, and it occurs invalid
> memory
> alloc request size [1]. It is a limit from palloc(), then I try to reduce
> it,
> it still complains out of memory which comes from enlargeStringInfo()
> [2]. The
> documentation about repect() [3] doesn't mentaion the limitation.
>

That is still a “field” even if it is not stored.

https://www.postgresql.org/docs/current/limits.html

David J.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2022-05-25 14:50:52 Re: Invalid memory alloc request size for repeat()
Previous Message Zhihong Yu 2022-05-25 14:38:17 Re: adding status for COPY progress report