Re: JSON out of memory error on PostgreSQL 9.6.x

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: JSON out of memory error on PostgreSQL 9.6.x
Date: 2017-12-04 00:33:00
Message-ID: 9c79d03e-31bb-aa4e-ad0f-bd1df0a4e093@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 12/3/2017 3:18 PM, Yuri Budilov wrote:
> |CREATETABLEX ASSELECTjson_array_elements(json_rmq
> ->'orders'::text)ASorderFROMtable_name WHEREblah;|
>
> I get out of memory error.

are you sure thats a postgres error ?  are you doing this in psql, or
what sort of application environment ?

how many rows does 'blah' match ?

what is...

SELECT pg_column_size(json_array_elements(json_rmq -> 'orders'::text))
  FROM table_name
  WHERE blah;

?

--
john r pierce, recycling bits in santa cruz

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2017-12-04 00:39:29 Re: JSON out of memory error on PostgreSQL 9.6.x
Previous Message Yuri Budilov 2017-12-04 00:23:18 Re: JSON out of memory error on PostgreSQL 9.6.x