Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l0VAZ-0000UF-Dg for pgsql-hackers@arkaria.postgresql.org; Fri, 15 Jan 2021 19:54:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l0VAY-0002Aa-4Z for pgsql-hackers@arkaria.postgresql.org; Fri, 15 Jan 2021 19:54:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l0VAX-0002AT-Tz for pgsql-hackers@lists.postgresql.org; Fri, 15 Jan 2021 19:54:01 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l0VAR-0004LM-DA for pgsql-hackers@postgresql.org; Fri, 15 Jan 2021 19:54:01 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 10FJrnnW1677874; Fri, 15 Jan 2021 14:53:49 -0500 From: Tom Lane To: Justin Pryzby cc: Peter Eisentraut , David Rowley , pgsql-hackers@postgresql.org, Andres Freund Subject: Re: jit and explain nontext In-reply-to: <20201130165932.GA7242@telsasoft.com> References: <3643530.1602724513@sss.pgh.pa.us> <20201015014326.GU9241@telsasoft.com> <20201017192134.GD9241@telsasoft.com> <20201120161622.GI24784@telsasoft.com> <20201121162600.GN24784@telsasoft.com> <20201130165932.GA7242@telsasoft.com> Comments: In-reply-to Justin Pryzby message dated "Mon, 30 Nov 2020 10:59:32 -0600" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1677872.1610740429.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 15 Jan 2021 14:53:49 -0500 Message-ID: <1677873.1610740429@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Justin Pryzby writes: > On Sat, Nov 21, 2020 at 10:26:00AM -0600, Justin Pryzby wrote: >> On Sat, Nov 21, 2020 at 08:39:11AM +0100, Peter Eisentraut wrote: >>> In this context, I don't see the point of this change. If you set jit= =3Doff >>> explicitly, then there is no need to clutter the EXPLAIN output with a= bunch >>> of zeroes about JIT. > If there's no interest or agreement in it, we should just close it. > I have no personal need for it, but noticed it in passing. I dug around a bit and saw that essentially all of the JIT control GUCs are consulted only at plan time (cf standard_planner, which fills PlannedStmt.jitFlags based on the then-active settings). So the only thing that really counts as a "run time decision" here is that if you set jit =3D off between planning and execution, or if we fail to load the JIT provider at all, then you'll get no JITting even though the planner expected it to happen. On balance I agree with Peter's opinion that this isn't worth changing. I would be for the patch if the executor had a little more freedom of action, but as things stand there's not much freedom there. regards, tom lane