Re: json(b)_array_elements use causes very large memory usage when also referencing entire json document

Andres Freund <andres@anarazel.de>

From: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Lucas Fairchild-Madar <lucas.madar@gmail.com>, pgsql-bugs@postgresql.org
Date: 2017-10-08T20:07:21Z
Lists: pgsql-bugs
On 2017-10-06 21:08:43 -0700, Andres Freund wrote:
> I'm kinda tempted to put this, after a bit more testing, into v10.

Any opinions on that?

- Andres


Commits

  1. Reduce memory usage of targetlist SRFs.

  2. Fix intra-query memory leakage in nodeProjectSet.c.