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 1jz6JT-0000Gk-3I for pgsql-general@arkaria.postgresql.org; Fri, 24 Jul 2020 22:37:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jz6JR-0005WB-Su for pgsql-general@arkaria.postgresql.org; Fri, 24 Jul 2020 22:37:09 +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 1jz6JR-0005W4-LX for pgsql-general@lists.postgresql.org; Fri, 24 Jul 2020 22:37:09 +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 1jz6JP-000515-EK for pgsql-general@lists.postgresql.org; Fri, 24 Jul 2020 22:37:08 +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 06OMb2iT629716; Fri, 24 Jul 2020 18:37:02 -0400 From: Tom Lane To: David Rowley cc: Andres Freund , Scott Ribe , PostgreSQL General Subject: Re: bad JIT decision In-reply-to: References: <7736C40E-6DB5-4E7A-8FE3-4B2AB8E22793@elevated-dev.com> Comments: In-reply-to David Rowley message dated "Sat, 25 Jul 2020 10:26:05 +1200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <629714.1595630222.1@sss.pgh.pa.us> Date: Fri, 24 Jul 2020 18:37:02 -0400 Message-ID: <629715.1595630222@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk David Rowley writes: > However, for now, you might just want to try raising various jit > thresholds so that it only is enabled for more expensive plans. Yeah. I'm fairly convinced that the v12 defaults are far too low, because we are constantly seeing complaints of this sort. regards, tom lane