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 1ppuYW-0001G5-7z for pgsql-hackers@arkaria.postgresql.org; Fri, 21 Apr 2023 17:28:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ppuYV-0005Qi-43 for pgsql-hackers@arkaria.postgresql.org; Fri, 21 Apr 2023 17:28:19 +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 1ppuYU-0005QT-Qz for pgsql-hackers@lists.postgresql.org; Fri, 21 Apr 2023 17:28:18 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ppuYS-0017GT-EQ for pgsql-hackers@lists.postgresql.org; Fri, 21 Apr 2023 17:28:17 +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 33LHSB713365334; Fri, 21 Apr 2023 13:28:11 -0400 From: Tom Lane To: Peter Eisentraut cc: Sandro Santilli , Regina Obe , pgsql-hackers@lists.postgresql.org, Jeff Davis Subject: Re: Order changes in PG16 since ICU introduction In-reply-to: <533d93c5-f604-8e5f-4a48-975c08c53d59@enterprisedb.com> References: <000b01d97465$c34bbd60$49e33820$@pcorp.us> <3353947.1682092131@sss.pgh.pa.us> <533d93c5-f604-8e5f-4a48-975c08c53d59@enterprisedb.com> Comments: In-reply-to Peter Eisentraut message dated "Fri, 21 Apr 2023 19:14:13 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3365332.1682098091.1@sss.pgh.pa.us> Date: Fri, 21 Apr 2023 13:28:11 -0400 Message-ID: <3365333.1682098091@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Peter Eisentraut writes: > If the database is created with locale provider ICU, then lc_collate > does not apply here, so the result might be correct (depending on what > locale you have set). FWIW, an installation created under LANG=C defaults to ICU locale en-US-u-va-posix for me (see psql \l), and that still sorts as expected on my RHEL8 box. We've not seen buildfarm problems either. I am wondering however whether this doesn't mean that all our carefully coded fast paths for C locale just went down the drain. Does the ICU code have any of that? Has any performance testing been done to see what impact this change had on C-locale installations? (The current code coverage report for pg_locale.c is not encouraging.) regards, tom lane