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 1p01eC-0003Vk-TJ for pgsql-performance@arkaria.postgresql.org; Tue, 29 Nov 2022 14:31:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p01eB-0007WW-Mh for pgsql-performance@arkaria.postgresql.org; Tue, 29 Nov 2022 14:31:43 +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 1p01eB-0007WN-Cd for pgsql-performance@lists.postgresql.org; Tue, 29 Nov 2022 14:31:43 +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 1p01e8-00048C-SD for pgsql-performance@lists.postgresql.org; Tue, 29 Nov 2022 14:31:42 +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 2ATEVall871131; Tue, 29 Nov 2022 09:31:36 -0500 From: Tom Lane To: Alvaro Herrera cc: Andres Freund , Mladen Gogala , pgsql-performance@lists.postgresql.org Subject: Re: Catching up with performance & PostgreSQL 15 In-reply-to: <20221129083615.fseqfvd5svtjbrb6@alvherre.pgsql> References: <20221129083615.fseqfvd5svtjbrb6@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Tue, 29 Nov 2022 09:36:15 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <871129.1669732296.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 29 Nov 2022 09:31:36 -0500 Message-ID: <871130.1669732296@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alvaro Herrera writes: > IMO it was a mistake to turn JIT on in the default config, so that's one > thing you'll likely want to change. I wouldn't necessarily go quite that far, but I do think that the default cost thresholds for invoking it are enormously too low, or else there are serious bugs in the cost-estimation algorithms for deciding when to use it. A nearby example[1] of a sub-1-sec partitioned query that took 30sec after JIT was enabled makes me wonder if we're accounting correctly for per-partition JIT costs. regards, tom lane [1] https://www.postgresql.org/message-id/B6025887-D73F-4B5B-9925-4DA4B675= F7E5%40elevated-dev.com