Re: BUG #15079: [54000] ERROR: total size of jsonb array elements exceeds the maximum of 268435455 bytes

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: revs(dot)subdu(at)gmail(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #15079: [54000] ERROR: total size of jsonb array elements exceeds the maximum of 268435455 bytes
Date: 2018-02-22 21:24:47
Message-ID: CAKFQuwZZ95W5JxQ_fgzdPONeCenUJ59-RB_zQtSQ8puKUJEJiQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Thu, Feb 22, 2018 at 1:58 PM, PG Bug reporting form <
noreply(at)postgresql(dot)org> wrote:

> The following bug has been logged on the website:
>
> Bug reference: 15079
> Logged by: Revathi
> Email address: revs(dot)subdu(at)gmail(dot)com
> PostgreSQL version: 10.0
> Operating system: CentoS
> Description:
>
> Hi,
>
> When I try to update the column with large json value (of type jsonb). I am
> getting following error.
>
> [54000] ERROR: total size of jsonb array elements exceeds the maximum of
> 268435455 bytes
>
> Is there any way to fix it or increase jsonb size?
>

This isn't a bug and the only option to increase it is to change
"JENTRY_OFFLENMASK" in src/include/utils/jsonb.h (and while I'm not a
hacker I doubt its that simple).

If you are willing to go down the hacker path you should post a new message
to the -hackers list discussing your desire.

Otherwise the limit here seems to be due to having too many array elements
- converting each element into a single database row will probably work and
likely will perform considerably better regardless, though its difficult to
know for sure without more detail about the structure of the json.

David J.

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Peter Geoghegan 2018-02-23 00:22:47 Re: PostgreSQL crashes with SIGSEGV
Previous Message PG Bug reporting form 2018-02-22 20:58:01 BUG #15079: [54000] ERROR: total size of jsonb array elements exceeds the maximum of 268435455 bytes