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 1ppuqB-0002Ty-H7 for pgsql-hackers@arkaria.postgresql.org; Fri, 21 Apr 2023 17:46:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ppuqA-0003kL-5Z for pgsql-hackers@arkaria.postgresql.org; Fri, 21 Apr 2023 17:46:34 +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 1ppuq9-0003kC-SD for pgsql-hackers@lists.postgresql.org; Fri, 21 Apr 2023 17:46:33 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ppuq7-004HR0-Lr for pgsql-hackers@lists.postgresql.org; Fri, 21 Apr 2023 17:46:33 +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 33LHkPEx3367227; Fri, 21 Apr 2023 13:46:26 -0400 From: Tom Lane To: "Regina Obe" cc: "'Peter Eisentraut'" , "'Sandro Santilli'" , pgsql-hackers@lists.postgresql.org, "'Jeff Davis'" Subject: Re: Order changes in PG16 since ICU introduction In-reply-to: <002d01d97477$f0395640$d0ac02c0$@pcorp.us> References: <000b01d97465$c34bbd60$49e33820$@pcorp.us> <3353947.1682092131@sss.pgh.pa.us> <533d93c5-f604-8e5f-4a48-975c08c53d59@enterprisedb.com> <3365333.1682098091@sss.pgh.pa.us> <002d01d97477$f0395640$d0ac02c0$@pcorp.us> Comments: In-reply-to "Regina Obe" message dated "Fri, 21 Apr 2023 13:37:25 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3367225.1682099185.1@sss.pgh.pa.us> Date: Fri, 21 Apr 2023 13:46:25 -0400 Message-ID: <3367226.1682099185@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "Regina Obe" writes: > On my mingw64 setup, I built a test database on PG16 (built with icu > support) and PG15 (no icu support) > CREATE DATABASE test TEMPLATE=template0 ENCODING = 'UTF8' LC_COLLATE = 'C' > LC_CTYPE = 'C'; As has been pointed out already, setting LC_COLLATE/LC_CTYPE is meaningless when the locale provider is ICU. You need to look at what ICU locale is being chosen, or force it with LOCALE = 'C'. regards, tom lane