Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fiSlG-0006hR-LC for pgsql-bugs@arkaria.postgresql.org; Wed, 25 Jul 2018 23:00:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fiSlD-0004OD-8D for pgsql-bugs@arkaria.postgresql.org; Wed, 25 Jul 2018 22:59:59 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fiSlC-0004O2-Uk; Wed, 25 Jul 2018 22:59:59 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fiSlA-0006CI-Au; Wed, 25 Jul 2018 22:59:57 +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 w6PMxpni014399; Wed, 25 Jul 2018 18:59:51 -0400 From: Tom Lane To: Andres Freund cc: Alvaro Herrera , Dmitry Dolgov <9erthalion6@gmail.com>, Michael Paquier , PostgreSQL-development , PostgreSQL mailing lists Subject: Re: LLVM jit and matview In-reply-to: <20180725221358.avh27sxrmiqej3lk@alap3.anarazel.de> References: <20180725214702.6v7jxi2zkcv3exar@alap3.anarazel.de> <20180725221113.q5bsc2qqnhbghxtt@alvherre.pgsql> <20180725221358.avh27sxrmiqej3lk@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Wed, 25 Jul 2018 15:13:58 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <14397.1532559591.1@sss.pgh.pa.us> Date: Wed, 25 Jul 2018 18:59:51 -0400 Message-ID: <14398.1532559591@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > On 2018-07-25 18:11:13 -0400, Alvaro Herrera wrote: >> But what would be the advantage of avoiding the context release inside >> FreeExecutorState? It seems pretty appropriate to me to do it there. >> You could argue that the JIT context is definitely part of the estate >> being freed. Just amend the comment, no? > I agree it's right to do it there. I think I'm more questioning whether > there's even a need to adapt the comment, given it's really a local > memory resource. But I guess I'll just add a 'and ...' after > "ExprContexts within the EState". +1. Clarity is good. regards, tom lane