Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iwp7R-0004ZX-WD for pgsql-bugs@arkaria.postgresql.org; Wed, 29 Jan 2020 15:19:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iwp7P-0002u1-Ur for pgsql-bugs@arkaria.postgresql.org; Wed, 29 Jan 2020 15:19:03 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iwp7P-0002tu-Eo for pgsql-bugs@lists.postgresql.org; Wed, 29 Jan 2020 15:19:03 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iwp7J-0004dZ-Qe for pgsql-bugs@lists.postgresql.org; Wed, 29 Jan 2020 15:19:01 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 00TFIpAY012933; Wed, 29 Jan 2020 10:18:51 -0500 From: Tom Lane To: Christian Schwaderer cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16223: Performance regression between 11.6 and 12.1 in an SQL query with a recursive CTE based on function In-reply-to: References: <16223-908afaa0eaf46ea2@postgresql.org> <47fea63b-fb4a-251d-8cff-a1b67161f039@ivocotec.de> <670FCE85-3229-40B0-A211-0599B88B611F@yesql.se> <961e4c0f-bdd4-4733-4706-0b19d8a8559f@ivocotec.de> <3381.1580139104@sss.pgh.pa.us> Comments: In-reply-to Christian Schwaderer message dated "Wed, 29 Jan 2020 14:49:10 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <12931.1580311131.1@sss.pgh.pa.us> Date: Wed, 29 Jan 2020 10:18:51 -0500 Message-ID: <12932.1580311131@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Christian Schwaderer writes: > On 27.01.20 16:31, Tom Lane wrote: >> Another thing that could be relevant is JIT, which is on by default >> in v12 (if enabled in configuration), and which is still suffering >> a lot of teething pains performance-wise. I'd check if that's >> on and try disabling it if so. > Anyway: Here are the details of versions and pg_config I see JIT support (--with-llvm) in those configurations, so did you heed the above advice? regards, tom lane