Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e0Xgu-0007xW-36 for pgsql-bugs@arkaria.postgresql.org; Fri, 06 Oct 2017 18:49:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e0Xgt-0007MM-Fj for pgsql-bugs@arkaria.postgresql.org; Fri, 06 Oct 2017 18:49:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e0XgB-000674-Jg for pgsql-bugs@postgresql.org; Fri, 06 Oct 2017 18:48:59 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e0Xg8-0004um-Ok for pgsql-bugs@postgresql.org; Fri, 06 Oct 2017 18:48:59 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v96ImsDK002377; Fri, 6 Oct 2017 14:48:54 -0400 From: Tom Lane To: Lucas Fairchild-Madar cc: pgsql-bugs@postgresql.org Subject: Re: json(b)_array_elements use causes very large memory usage when also referencing entire json document In-reply-to: References: <1546.1507314635@sss.pgh.pa.us> Comments: In-reply-to Lucas Fairchild-Madar message dated "Fri, 06 Oct 2017 11:45:07 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2375.1507315734.1@sss.pgh.pa.us> Date: Fri, 06 Oct 2017 14:48:54 -0400 Message-ID: <2376.1507315734@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Lucas Fairchild-Madar 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 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs