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 1ppv31-0003KB-3z for pgsql-hackers@arkaria.postgresql.org; Fri, 21 Apr 2023 17:59:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ppv30-00021m-1f for pgsql-hackers@arkaria.postgresql.org; Fri, 21 Apr 2023 17:59:50 +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 1ppv2z-00021d-O9 for pgsql-hackers@lists.postgresql.org; Fri, 21 Apr 2023 17:59:49 +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 1ppv2x-004HX8-CX for pgsql-hackers@lists.postgresql.org; Fri, 21 Apr 2023 17:59:49 +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 33LHxgeY3368987; Fri, 21 Apr 2023 13:59:42 -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: <003b01d9747a$910471c0$b30d5540$@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> <3367226.1682099185@sss.pgh.pa.us> <003b01d9747a$910471c0$b30d5540$@pcorp.us> Comments: In-reply-to "Regina Obe" message dated "Fri, 21 Apr 2023 13:56:14 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3368985.1682099982.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 21 Apr 2023 13:59:42 -0400 Message-ID: <3368986.1682099982@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "Regina Obe" writes: > Okay got it was on IRC with RhodiumToad and he suggested: > CREATE DATABASE test2 TEMPLATE=3Dtemplate0 ENCODING =3D 'UTF8' LC_COLLAT= E =3D 'C' > LC_CTYPE =3D 'C' ICU_LOCALE=3D'C'; > Which gives expected result: > SELECT '+' < '-' ; -- true > but gives me a notice: > NOTICE: using standard form "en-US-u-va-posix" for locale "C" Yeah. My recommendation is just LOCALE: regression=3D# CREATE DATABASE test1 TEMPLATE=3Dtemplate0 ENCODING =3D 'UT= F8' LOCALE =3D 'C'; CREATE DATABASE regression=3D# CREATE DATABASE test2 TEMPLATE=3Dtemplate0 ENCODING =3D 'UT= F8' ICU_LOCALE =3D 'C'; NOTICE: using standard form "en-US-u-va-posix" for locale "C" CREATE DATABASE I think it's probably intentional that ICU_LOCALE is stricter about being given a real ICU locale name, but I didn't write any of that code. regards, tom lane