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 1ppyPW-0008QA-BY for pgsql-hackers@arkaria.postgresql.org; Fri, 21 Apr 2023 21:35:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ppyPU-0006Dv-5J for pgsql-hackers@arkaria.postgresql.org; Fri, 21 Apr 2023 21:35:16 +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 1ppyPT-0006Dm-Rl for pgsql-hackers@lists.postgresql.org; Fri, 21 Apr 2023 21:35:15 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ppyPR-0019La-9Z for pgsql-hackers@lists.postgresql.org; Fri, 21 Apr 2023 21:35:14 +0000 Received: from [192.168.127.4] (port=14357 helo=erlenstar.riddles.org.uk) by lungold.riddles.org.uk with esmtp (Exim 4.92.3 (FreeBSD)) (envelope-from ) id 1ppyPN-000DHY-VQ; Fri, 21 Apr 2023 21:35:09 +0000 Received: from localhost ([127.0.0.1]:10040 helo=erlenstar.riddles.org.uk) by erlenstar.riddles.org.uk with esmtp (Exim 4.94 (FreeBSD)) (envelope-from ) id 1ppyPN-0008Jd-Fr; Fri, 21 Apr 2023 21:35:09 +0000 From: Andrew Gierth To: Jeff Davis Cc: Peter Eisentraut , Sandro Santilli , Tom Lane , Regina Obe , pgsql-hackers@lists.postgresql.org Subject: Re: Order changes in PG16 since ICU introduction In-Reply-To: (Jeff Davis's message of "Fri, 21 Apr 2023 14:25:26 -0700") Message-ID: <87v8hoexdv.fsf@news-spur.riddles.org.uk> References: <000b01d97465$c34bbd60$49e33820$@pcorp.us> <3353947.1682092131@sss.pgh.pa.us> <533d93c5-f604-8e5f-4a48-975c08c53d59@enterprisedb.com> <878relf7cb.fsf@news-spur.riddles.org.uk> <7d62b28d808617aae43a68bdfba14d7075f048ea.camel@j-davis.com> <87zg71djuz.fsf@news-spur.riddles.org.uk> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (berkeley-unix) Date: Fri, 21 Apr 2023 22:35:09 +0100 MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk >>>>> "Jeff" == Jeff Davis writes: >> Is that the right fix, though? (It forces --locale-provider=libc for >> the cluster default, which might not be desirable?) Jeff> For the "no locale" behavior (memcmp()-based) the provider needs Jeff> to be libc. Do you see an alternative? Can lc_collate_is_c() be taught to check whether an ICU locale is using POSIX collation? There's now another bug in that --no-locale no longer does the same thing as --locale=C (which is its long-established documented behavior). How should these various options interact? This all seems not well thought out from a usability perspective, and I think a proper fix should involve a bit more serious consideration. -- Andrew.