Re: Storing large large JSON objects in JSONB

Поиск
Список
Период
Сортировка
От Wells Oliver
Тема Re: Storing large large JSON objects in JSONB
Дата
Msg-id CAOC+FBWFz2NpH76Z9GfeZ=NPqTHcm5Sir1UEy-7zfuzGEe4wFg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Storing large large JSON objects in JSONB  (Thomas Kellerer <shammat@gmx.net>)
Список pgsql-admin
Eh, I might be wrong, these are some very large objects, but maybe they are below the 256MB threshold.

On Mon, Jul 11, 2022 at 10:49 AM Thomas Kellerer <shammat@gmx.net> wrote:

Wells Oliver schrieb am 11.07.2022 um 18:25:
>> On Mon, Jul 11, 2022 at 5:11 AM Thomas Kellerer <shammat@gmx.net <mailto:shammat@gmx.net>> wrote:
>>
>>     Wells Oliver schrieb am 09.07.2022 um 21:37:
>>      > We have a couple of tables where we like to store very large JSON
>>      > objects in a JSONB column.
>>     Note, that the upper limit for a single jsonb value is 255MB
>>     Not 1GB as it is e.g. the case for text or json.

> What exactly does that mean? The upper limit at which TOAST is used
> for storage, or what? We certainly have objects larger than 256MB in
> JSONB columns.
Hmm, that's strange, because when I try to create a JSONB value that is
larger than 256MB I get the following error:

    ERROR: total size of jsonb object elements exceeds the maximum of 268435455 bytes

Are you sure you are using jsonb, not json maybe?
To my knowledge the json data type does not have this limit.



--

В списке pgsql-admin по дате отправления:

Предыдущее
От: Thomas Kellerer
Дата:
Сообщение: Re: Storing large large JSON objects in JSONB
Следующее
От: Aleksey M Boltenkov
Дата:
Сообщение: Re: Storing large large JSON objects in JSONB