Re: JSONB maximal length ?

Поиск
Список
Период
Сортировка
От Michael Lewis
Тема Re: JSONB maximal length ?
Дата
Msg-id CAHOFxGoec_y7CnCSmn=L0G1fApe+0eoLo7b0YG67cZt+05S9kQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: JSONB maximal length ?  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-general

Hi

   By inserting data in a JSONB type column I got the following error message:

>> 

ERROR:  string too long to represent as jsonb string

DETAIL:  Due to an implementation restriction, jsonb strings cannot exceed 268435455 bytes.

<< 

could anyone confirm that there is a size limit for JSONB type fields ?


Have you looked at bytea datatype? I believe this would allow up to 1GB which is the max file size so the maximum (minus some overhead) for a row. Perhaps though, storing files of unusually large size should be done outside of the database.

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

Предыдущее
От: Michael Lewis
Дата:
Сообщение: Re: Performance on JSONB select
Следующее
От: Michael Lewis
Дата:
Сообщение: Re: Declarative Range Partitioning Postgres 11