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 1fiSRi-0005qE-Ij for pgsql-bugs@arkaria.postgresql.org; Wed, 25 Jul 2018 22:39:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fiSRg-0007b6-FB for pgsql-bugs@arkaria.postgresql.org; Wed, 25 Jul 2018 22:39:48 +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.89) (envelope-from ) id 1fiSRg-0007at-8n for pgsql-bugs@lists.postgresql.org; Wed, 25 Jul 2018 22:39:48 +0000 Received: from mail-qt0-x244.google.com ([2607:f8b0:400d:c0d::244]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fiSRa-0007WK-GR for pgsql-bugs@postgresql.org; Wed, 25 Jul 2018 22:39:46 +0000 Received: by mail-qt0-x244.google.com with SMTP id y19-v6so9340985qto.5 for ; Wed, 25 Jul 2018 15:39:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=wxR182ZkkdPAELt05wP5Of3PsKabWnQCHnJ8w12O28Q=; b=ltgVruxieay2l29a79lk+ZYED7MdT+NgpU/lSEEV4U49xNfi4IlXIve3KElNpvRKzy MLeiGkFEVOSsI6V+uBV3fRXJwTkWAqDWOENztfft1a/pL5L457UcEyy5ZgwYV/mGr8nx HsMCU4CES8E3VeYLBMGF+Url1Nbs7k48wmPUua5kTQ1AgxARKHXtwnQcdBW4H2AJrI4v MAAnuhFTtQs8H3E5zYVBsAPelEQX1FaRY63dUMzurh1qHrdbzPV3k2BXzG4mveBjPJij Px1zitF+AW0SbYuRhx5/GmNYC8/PvDw0Kq1O1L8jOLtlHWxb/BdPstrikKb4dKXUxcTk NDBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=wxR182ZkkdPAELt05wP5Of3PsKabWnQCHnJ8w12O28Q=; b=ZleQDUeAdYjlBKxtRN7mLvalXq1hK/uq9yDQFLKKgqKkCH/jEQdSTmfRly7lnDvdaj iN0gEPQuseM8U5gGlLeHGN2vvu+/uxepqlL2p8OpwLhiuu6ILo6zAwHeOv7Fu9NDiApn a+RNv0us/3q/Ji8YaYJIc5LikFQo7LWZKUj/jUqN8kynvq0md4mObioGWnSPSEwkeIzX Qy+v2xBcPnHXL5n/w3vgUHF3nCIQifLiMdd7OlvmsQe44PPDTdMlpD4gDTWfUNVyl2Au Rv5nArCq8mWCtElhdDfZD+sd1nUj/k79A3QJ7GEw38xFfkV+ZoCzjTxtQlEsp78WnN/e C+ag== X-Gm-Message-State: AOUpUlGQBtvU20QN4Mo8rBlt8ULD0A6S7TM1aCUBWwxTF+AUq5SD2McS 3oM42lOnpiim9gX+KcNualWcn1HNJu8= X-Google-Smtp-Source: AAOMgpdA5ghVRIZhba4oQqyzXo4KUEyR7MRd+Su3EPOtOSBhUZZUWRxCwkrhb7v9RCjdxfLQ7GcluQ== X-Received: by 2002:aed:3f1d:: with SMTP id p29-v6mr21657386qtf.320.1532558380810; Wed, 25 Jul 2018 15:39:40 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([179.56.48.71]) by smtp.gmail.com with ESMTPSA id k3-v6sm12907421qkl.95.2018.07.25.15.39.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 25 Jul 2018 15:39:40 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 8DCAD4ED; Wed, 25 Jul 2018 18:39:38 -0400 (-04) Date: Wed, 25 Jul 2018 18:39:38 -0400 From: Alvaro Herrera To: Andres Freund Cc: Dmitry Dolgov <9erthalion6@gmail.com>, Michael Paquier , PostgreSQL-development , PostgreSQL mailing lists Subject: Re: LLVM jit and matview Message-ID: <20180725223938.c5x2gkyum4t4tgxy@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180725221358.avh27sxrmiqej3lk@alap3.anarazel.de> User-Agent: NeoMutt/20170306-137-4415bd-dirty (1.8.0) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-Jul-25, Andres Freund wrote: > On 2018-07-25 18:11:13 -0400, Alvaro Herrera wrote: > > On 2018-Jul-25, Andres Freund 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. Ok. > 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". Yeah, adding two words there sounds good. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services