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 1pziKU-00028R-Uw for pgsql-hackers@arkaria.postgresql.org; Thu, 18 May 2023 18:26:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pziKT-0001X5-NO for pgsql-hackers@arkaria.postgresql.org; Thu, 18 May 2023 18:26:21 +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 1pziKT-0001Ww-Df for pgsql-hackers@lists.postgresql.org; Thu, 18 May 2023 18:26:21 +0000 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1pziKQ-000Zx5-1W for pgsql-hackers@lists.postgresql.org; Thu, 18 May 2023 18:26:20 +0000 Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-643a1fed360so1701041b3a.3 for ; Thu, 18 May 2023 11:26:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20221208.gappssmtp.com; s=20221208; t=1684434377; x=1687026377; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=rAkl9tenejKt+j6hLZKZoABysqYHPNwbwyvrHWcSjEY=; b=nnenZa3+xCIzZbC+SZL3GMqrRCbnpG6C1f1q8ACZmbcYYi3j4+oEnYTN632IIOoYAr 7i/kst2g6AnE62JB1EeUpxUBQ/ODN2e/4O+viOiNo+lJ+tGqq5xi90OY2pEYLASr0bWr I3qXL03GqWBA5KrVJmp09Px4yuL3suLSvdtPqC8NqrxmCQl7oe6p5hJQs9WmjvEGQhtA ZEkgKscCU3Y0DeeyjTi5q9xVzh5Y08uMdDxfrCE6a5Fg2u+Nws/y+qViCn50Q9Pv4/uC DuWyAQi5qG7TuluO76B8XtILfn41QE0mPncUQXl4LH5B4jcTJImhzZqX0zVWSBweBYj+ YfiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684434377; x=1687026377; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=rAkl9tenejKt+j6hLZKZoABysqYHPNwbwyvrHWcSjEY=; b=kOpLLyJVPcBl6uMCABH5dJwA1o9WS9ZU8CvpnFdHDXgmZBC7Tq1Ww+8PKmIAm55qsT eFFm+pkKpvLE6gmI+fJyWZ8npIWQM/A2S4zmacVb4MhwdXmTuDgs7h0sobchT2s/Ucte +6AaImsmX8/geEH8+THigolU4d2ySiYeSpHUKjP2wjGCHMNG978ydDdl1+Gn7g95pJiY qwPnmK9A5c3R4cEbF5eG+mcPpc0koUv0PPqrT3CuPtZt+xkxYQfSvjTlrDXGi9Te+n0h YoT5iUtT4zb3od8Nr2glJLvmetrRrl4v2FmvTx/tUz/01I86TRaT2vVp4xmfvsWbK09z 9bUQ== X-Gm-Message-State: AC+VfDx2GcDIYMNaKD8ofBVq/s90+fDE6/IUcThMlELkimQ66BM2gr+n 6pWc8T6se69mdS7+qjjNJqQLnQ== X-Google-Smtp-Source: ACHHUZ6SMI0QDsQT4SjMp5nHfZ3C4cdPcmFWD4iTOIGLG2BjlWHj1PSlPhqT1vABpjMhA+u18Cvwqw== X-Received: by 2002:a05:6a20:c5a8:b0:100:1044:9ccb with SMTP id gn40-20020a056a20c5a800b0010010449ccbmr474563pzb.60.1684434376741; Thu, 18 May 2023 11:26:16 -0700 (PDT) Received: from [172.18.7.14] ([12.126.244.130]) by smtp.gmail.com with ESMTPSA id n1-20020a17090a9f0100b00250d908a771sm1706478pjp.50.2023.05.18.11.26.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 May 2023 11:26:16 -0700 (PDT) Message-ID: <818d9d27f53cb63db2dac036b3ce988603c79cf5.camel@j-davis.com> Subject: Re: Order changes in PG16 since ICU introduction From: Jeff Davis To: "Jonathan S. Katz" , Robert Haas Cc: Tom Lane , Regina Obe , Peter Eisentraut , Sandro Santilli , pgsql-hackers@lists.postgresql.org Date: Thu, 18 May 2023 11:26:14 -0700 In-Reply-To: <7f18878d-f3e2-1e81-4456-1198937242bd@postgresql.org> References: <000b01d97465$c34bbd60$49e33820$@pcorp.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> <3368986.1682099982@sss.pgh.pa.us> <000001d9747d$066b7560$13426020$@pcorp.us> <3372735.1682101425@sss.pgh.pa.us> <7ee07b7d5aa4fb0b47e5657640568fdd25ba168f.camel@j-davis.com> <2ffe8ffb9291b9390b9ed6c1e34b4fae8e8ce324.camel@j-davis.com> <25787ec7-4c04-9a8a-d241-4dc9be0b1ba3@postgresql.org> <605324592391599a7ecd522087edbd00720793b7.camel@j-davis.com> <52553877-7966-e25f-6c74-a974a504250e@postgresql.org> <7f18878d-f3e2-1e81-4456-1198937242bd@postgresql.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4-0ubuntu1 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 2023-05-18 at 13:58 -0400, Jonathan S. Katz wrote: > =C2=A0From my read of them, as an app developer I'd be very unlikely to > use=20 > this. Maybe there is something with building out some collation rules > vis-a-vis an extension, but I have trouble imagining the use-case. I > may=20 > also not be the target audience for this feature. That's a problem for the ICU rules feature. I understand some features may be for domain experts only, but we at least need to call that out so that ordinary developers don't get confused. And we should hear from some of those domain experts that they actually want it and it solves a real problem. For the features that can be described with collation settings/attributes right in the locale name, the use cases are more plausible and we've supported them since v10, so it's good to document them as best we can. It's hard to expose only the particular ICU collation settings we understand best (e.g. the "ks" setting that allows case insensitive collation), so it's inevitable that there will be some settings that are more obscure and harder to document. But in the case of ICU rules, they are newly-supported in 16, so there should be a clear reason we're adding them. Otherwise we're just setting up users for confusion or problems, and creating backwards- compatibility headaches for ourselves (and the last thing we want is to fret over backwards compatibility for a feature with no users). Beyond that, there seems to be some danger: if the syntax for rules is not perfectly compatible between ICU versions, the user might run into big problems. Regards, Jeff Davis