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 1l4Q5P-0004s1-E5 for pgsql-committers@arkaria.postgresql.org; Tue, 26 Jan 2021 15:16:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l4Q5O-00017s-AS for pgsql-committers@arkaria.postgresql.org; Tue, 26 Jan 2021 15:16:54 +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 1l4Q5O-00017l-4p for pgsql-committers@lists.postgresql.org; Tue, 26 Jan 2021 15:16:54 +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 1l4Q5M-0006pI-1d for pgsql-committers@lists.postgresql.org; Tue, 26 Jan 2021 15:16:53 +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 10QFGo402167664; Tue, 26 Jan 2021 10:16:51 -0500 From: Tom Lane To: Michael Paquier cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Improve performance of repeated CALLs within plpgsql procedures. In-reply-to: References: Comments: In-reply-to Michael Paquier message dated "Tue, 26 Jan 2021 19:54:46 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2167662.1611674210.1@sss.pgh.pa.us> Date: Tue, 26 Jan 2021 10:16:50 -0500 Message-ID: <2167663.1611674210@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Michael Paquier writes: > On Tue, Jan 26, 2021 at 03:28:39AM +0000, Tom Lane wrote: >> Improve performance of repeated CALLs within plpgsql procedures. > lapwing is generating a warning here: Yeah, I saw that last night. It's weird, because that patch surely did not change anything that should affect defined-ness of retval. I plan to fix it by just immediately initializing retval, but I want to wait a little bit, because I'm curious to see if any other compilers complain. regards, tom lane