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 1mK4Lw-0002qV-Er for pgsql-performance@arkaria.postgresql.org; Sat, 28 Aug 2021 19:50:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mK4Lv-0001VK-Do for pgsql-performance@arkaria.postgresql.org; Sat, 28 Aug 2021 19:50:55 +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 1mK4Lv-0001VC-5x for pgsql-performance@lists.postgresql.org; Sat, 28 Aug 2021 19:50:55 +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 1mK4Lp-00039M-3c for pgsql-performance@postgresql.org; Sat, 28 Aug 2021 19:50:54 +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 17SJohsf1050918; Sat, 28 Aug 2021 15:50:43 -0400 From: Tom Lane To: "ldh@laurent-hasson.com" cc: Andrew Dunstan , Justin Pryzby , Ranier Vilela , "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> Comments: In-reply-to "ldh@laurent-hasson.com" message dated "Sat, 28 Aug 2021 18:27:27 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1050916.1630180243.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sat, 28 Aug 2021 15:50:43 -0400 Message-ID: <1050917.1630180243@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "ldh@laurent-hasson.com" writes: > SET lc_messages =3D 'C'; > show lc_messages; --> OK 'C' > explain (analyze,buffers,COSTS,TIMING) = > select MAX(toFloat(b, null)) as "b" from sampletest > ... > Execution Time: 175.600 ms > explain (analyze,buffers,COSTS,TIMING) = > select MAX(toFloat(a, null)) as "a" from sampletest > ... > Execution Time: 88031.585 ms > Doesn't seem to make a difference unless I misunderstood what you were a= sking for regarding the locale? Hmm. This suggests that whatever effect Andrew found with NLS is actually not the explanation for your problem. So I'm even more confused than before. regards, tom lane