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

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Lucas Fairchild-Madar <lucas.madar@gmail.com>
Cc: pgsql-bugs@postgresql.org
Date: 2017-10-06T18:48:54Z
Lists: pgsql-bugs
Lucas Fairchild-Madar <lucas.madar@gmail.com> writes:
> I'm experiencing this on 9.6.

Oh, hmm, it's something else in that case.  Can you put together a
more self-contained test case?  This sort of thing isn't usually
very data-dependent, so you could probably make a test case with
dummy data.

			regards, tom lane


Commits

  1. Reduce memory usage of targetlist SRFs.

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