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 1k0GNS-0002QJ-50 for pgsql-general@arkaria.postgresql.org; Tue, 28 Jul 2020 03:34:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k0GNR-0006q0-5R for pgsql-general@arkaria.postgresql.org; Tue, 28 Jul 2020 03:34:05 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k0GNQ-0006ps-U3 for pgsql-general@lists.postgresql.org; Tue, 28 Jul 2020 03:34:04 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k0GNK-0002UC-HI for pgsql-general@lists.postgresql.org; Tue, 28 Jul 2020 03:34:03 +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 06S3Xird1153094; Mon, 27 Jul 2020 23:33:44 -0400 From: Tom Lane To: David Rowley cc: Scott Ribe , Christoph Moench-Tegeder , PostgreSQL General Subject: Re: is JIT available In-reply-to: References: <78993261-E86D-4CCC-8606-11C0A47B5817@elevated-dev.com> <20200725140211.GA2440@elch.exwg.net> <1956E806-1468-4417-9A9D-235AE1D5FE1A@elevated-dev.com> Comments: In-reply-to David Rowley message dated "Tue, 28 Jul 2020 12:04:30 +1200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1153092.1595907224.1@sss.pgh.pa.us> Date: Mon, 27 Jul 2020 23:33:44 -0400 Message-ID: <1153093.1595907224@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk David Rowley writes: > Maybe this would be better? > "returns true if jit is enabled and JIT compilation is available in > this session (see Chapter 31)." The general, non-hacker meaning of "jit is enabled" would seem to be pretty much what this function is already doing; and for that matter, the same can be said for "JIT compilation is available". We need something that's less tautological-looking. Maybe along the lines of "returns true if a JIT compiler extension is available and the jit parameter is set to on; when this is true, JIT compilation will be performed." ? regards, tom lane