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 1nZJxD-00055P-Nx for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Mar 2022 22:04:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nZJxC-0007tz-49 for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Mar 2022 22:04:42 +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 1nZJxB-0007tq-RL for pgsql-hackers@lists.postgresql.org; Tue, 29 Mar 2022 22:04:41 +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 1nZJx9-00011I-GS for pgsql-hackers@lists.postgresql.org; Tue, 29 Mar 2022 22:04:40 +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 22TM4WAm113362; Tue, 29 Mar 2022 18:04:33 -0400 From: Tom Lane To: Peter Geoghegan cc: David Rowley , Robert Haas , Julien Rouhaud , Magnus Hagander , Andres Freund , Justin Pryzby , PostgreSQL Hackers Subject: Re: Add parameter jit_warn_above_fraction In-reply-to: References: <20220225162304.GD9008@telsasoft.com> <20220321235048.wb3ymun6lbi33b2u@alap3.anarazel.de> <20220329100846.3iedk5ear3ewdi5j@jrouhaud> Comments: In-reply-to Peter Geoghegan message dated "Tue, 29 Mar 2022 13:35:53 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <113360.1648591472.1@sss.pgh.pa.us> Date: Tue, 29 Mar 2022 18:04:32 -0400 Message-ID: <113361.1648591472@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Peter Geoghegan writes: > On Tue, Mar 29, 2022 at 1:06 PM David Rowley wrote: >> That means that even if the total execution time of a plan was a true >> reflection of the total estimated plan cost, then the fraction of time >> spent (as is measured by jit_warn_above_fraction) doing JIT would >> entirely depend on the number of expressions to compile. Of course, >> the planner's not that good, but does that not indicate that the JIT >> costing should really account for the number of expressions and not >> just the total plan cost? > That's a good point. I think David's questions are sufficiently cogent and difficult that we should not add jit_warn_above_fraction at this time. Maybe we'll eventually decide it's the best we can do; but I do not think we have a problem there that's so pressing that we need to rush out a partially-baked bandaid. Especially not at the tail end of the development cycle, with not much time to gain experience with it before we ship. regards, tom lane