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 1oHUiV-00045k-Kb for pgsql-hackers@arkaria.postgresql.org; Fri, 29 Jul 2022 18:28:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oHUiU-0002qn-Gf for pgsql-hackers@arkaria.postgresql.org; Fri, 29 Jul 2022 18:28:06 +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 1oHUiU-0002pG-5Y for pgsql-hackers@lists.postgresql.org; Fri, 29 Jul 2022 18:28:06 +0000 Received: from relay12.mail.gandi.net ([2001:4b98:dc4:8::232]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oHUiR-0001Fc-Bd; Fri, 29 Jul 2022 18:28:04 +0000 Received: (Authenticated sender: adsend@dunslane.net) by mail.gandi.net (Postfix) with ESMTPSA id E1974200004; Fri, 29 Jul 2022 18:27:52 +0000 (UTC) Message-ID: <035bfc05-d6ea-b746-ce80-a533b41a0d55@dunslane.net> Date: Fri, 29 Jul 2022 14:27:36 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: PG 15 (and to a smaller degree 14) regression due to ExprEvalStep size Content-Language: en-US To: Amit Langote , David Rowley Cc: Alvaro Herrera , Andres Freund , Michael Paquier , John Naylor , "Jonathan S. Katz" , Tom Lane , Peter Geoghegan , PostgreSQL-development , Nikita Glukhov References: <20220721171235.7okm3q5i7jyuwtqw@alvherre.pgsql> From: Andrew Dunstan In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2022-07-27 We 04:01, Amit Langote wrote: > On Fri, Jul 22, 2022 at 2:49 PM Amit Langote wrote: >> On Fri, Jul 22, 2022 at 1:13 PM David Rowley wrote: >>> BTW, I was working on code inside llvm_compile_expr() a few days ago >>> and I thought I'd gotten the new evaluation steps I was adding correct >>> as it worked fine with jit_above_cost=0, but on further testing, it >>> crashed with jit_inline_above_cost=0. Might be worth doing both to see >>> if everything works as intended. >> Thanks for the pointer. >> >> So I didn't see things going bust on re-testing with all >> jit_*_above_cost parameters set to 0, so maybe the >> llvm_compile_expression() additions are alright. > Here's an updated version of the patch, with mostly cosmetic changes. > In particular, I added comments describing the new llvm_compile_expr() > blobs. > Andres, this work has been done in response to a complaint from you. Does this address your concerns satisfactorily? cheers andrew -- Andrew Dunstan EDB: https://www.enterprisedb.com