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 1p0Q4b-0004sw-FG for pgsql-performance@arkaria.postgresql.org; Wed, 30 Nov 2022 16:36:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p0Q4a-0006cj-C5 for pgsql-performance@arkaria.postgresql.org; Wed, 30 Nov 2022 16:36:36 +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 1p0Q4a-0006ca-22 for pgsql-performance@lists.postgresql.org; Wed, 30 Nov 2022 16:36:36 +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 1p0Q4X-0001EL-Of for pgsql-performance@lists.postgresql.org; Wed, 30 Nov 2022 16:36:35 +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 2AUGaS2n1345397; Wed, 30 Nov 2022 11:36:28 -0500 From: Tom Lane To: Andres Freund cc: Andrew Dunstan , David Rowley , Alvaro Herrera , Mladen Gogala , pgsql-performance@lists.postgresql.org Subject: Re: Catching up with performance & PostgreSQL 15 In-reply-to: References: <20221129083615.fseqfvd5svtjbrb6@alvherre.pgsql> <871130.1669732296@sss.pgh.pa.us> <18d8cac2-36fa-3736-fa4a-c33c290301cb@dunslane.net> Comments: In-reply-to Andres Freund message dated "Wed, 30 Nov 2022 08:07:11 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1345395.1669826188.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 30 Nov 2022 11:36:28 -0500 Message-ID: <1345396.1669826188@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund writes: > On November 30, 2022 3:47:32 AM PST, Andrew Dunstan wrote: >> I think Alvaro's point is that it would have been better to work out >> these wrinkles before turning on JIT by default. Based on anecdotal >> reports from the field I'm inclined to agree. > The problem is that back when it was introduced these problems didn't ex= ist to a significant degree. JIT was developed when partitioning was very = minimal- and the problems we're seeing are almost exclusively with queries= with many partitions. The problems really only started much more recently= . It also wasn't enabled in the first release.. Well, wherever you want to pin the blame, it seems clear that we have a problem now. And I don't think flipping back to off-by-default is the answer -- surely there is some population of users who will not be happy with that. We really need to prioritize fixing the cost-estimation problems, and/or tweaking the default thresholds. regards, tom lane