JSON out of memory error on PostgreSQL 9.6.x

Поиск
Список
Период
Сортировка
От Yuri Budilov
Тема JSON out of memory error on PostgreSQL 9.6.x
Дата
Msg-id DM5PR13MB17557D9BE4B9846D16D05405993F0@DM5PR13MB1755.namprd13.prod.outlook.com
обсуждение исходный текст
Ответ на Re: unsubscribe  (John R Pierce <pierce@hogranch.com>)
Ответы Re: JSON out of memory error on PostgreSQL 9.6.x  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: JSON out of memory error on PostgreSQL 9.6.x  (rob stone <floriparob@gmail.com>)
Re: JSON out of memory error on PostgreSQL 9.6.x  (John R Pierce <pierce@hogranch.com>)
Re: JSON out of memory error on PostgreSQL 9.6.x  (John R Pierce <pierce@hogranch.com>)
Список pgsql-general
Posted on Stack Overflow, sadly no replies, so trying here.... CREATE TABLE X AS SELECT json_array_elements(json_rmq -> 'orders'::text) AS order FROM table_name WHERE blah; I get out of memory error. Is there anything I can do to unpack the above? The JSON column is about ~5 MB and it has about ~150,000 array row elements in 'orders' above. I tried work_mem values up to ~250MB and it did not help, the query takes about same time to fail. I guess this parameter does not help JSON processing. If there another parameter I can try? Something else? I don't have control of the size of the JSON payload, it arrives, we store it in a JSON column and then we need to crack it open. Many thanks!

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

Предыдущее
От: hvjunk
Дата:
Сообщение: Re: building a server
Следующее
От: Tom Lane
Дата:
Сообщение: Re: JSON out of memory error on PostgreSQL 9.6.x