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 1mKKxx-0008L5-GV for pgsql-performance@arkaria.postgresql.org; Sun, 29 Aug 2021 13:35:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mKKxv-00079I-Vx for pgsql-performance@arkaria.postgresql.org; Sun, 29 Aug 2021 13:35:15 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mKKxv-000799-Na for pgsql-performance@lists.postgresql.org; Sun, 29 Aug 2021 13:35:15 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mKKxs-0002wz-SV for pgsql-performance@postgresql.org; Sun, 29 Aug 2021 13:35:15 +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 17TDZ5br1124171; Sun, 29 Aug 2021 09:35:05 -0400 From: Tom Lane To: Ranier Vilela cc: "ldh@laurent-hasson.com" , Andrew Dunstan , Justin Pryzby , "pgsql-performance@postgresql.org" Subject: Re: Big Performance drop of Exceptions in UDFs between V11.2 and 13.4 In-reply-to: References: <2092859.1629558281@sss.pgh.pa.us> <2136207.1629569846@sss.pgh.pa.us> <20210821191950.GW10479@telsasoft.com> <20210821221729.GY10479@telsasoft.com> <20210822154758.GZ10479@telsasoft.com> <30496.1629654632@sss.pgh.pa.us> <35729.1629660223@sss.pgh.pa.us> <38107.! 1629663085@sss.pgh.pa.us> <846170.1630086205@sss.pgh.pa.us> <1050917.1630180243@sss.pgh.pa.us> Comments: In-reply-to Ranier Vilela message dated "Sun, 29 Aug 2021 09:53:57 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1124169.1630244105.1@sss.pgh.pa.us> Date: Sun, 29 Aug 2021 09:35:05 -0400 Message-ID: <1124170.1630244105@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Ranier Vilela writes: > I retested this case with HEAD, and it seems to me that NLS does affect it. Sure, there's no question that message translation will have *some* cost. But on my machine it is an incremental tens-of-percent kind of cost, and that is the result you're getting as well. So it's not very clear where these factor-of-several-hundred differences are coming from. regards, tom lane