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 1pRdw2-0008P7-Ey for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Feb 2023 18:52: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 1pRdw1-0001X6-9g for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Feb 2023 18:52:17 +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 1pRdw0-0001Wx-SV for pgsql-hackers@lists.postgresql.org; Mon, 13 Feb 2023 18:52:17 +0000 Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pRdvy-0004w8-Ls for pgsql-hackers@postgresql.org; Mon, 13 Feb 2023 18:52:15 +0000 Received: by mail-pj1-x1035.google.com with SMTP id a8-20020a17090a6d8800b002336b48f653so11850633pjk.3 for ; Mon, 13 Feb 2023 10:52:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20210112.gappssmtp.com; s=20210112; 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=dQDJaq3S/DFnHUv0/jlr4FVNT8798o+LQwSJ638OzRQ=; b=ZniKSA2Pcg4qxI1FNYeB0HGLowqPfx91Nu17G6a25nhCFyUr+8AfsePkJb2a3P6Vif EcQb8QgQJqZ9BSerYx+N0S55GxdI+PhzZRE48w1JDxZSWJ3KoQHYyV5r4JGneks72t2E z7uSXvxq9l/jhD2FUpxvx2n9CHELmenApPdJk+1AC9fS1qqN7z7/+/oGfe5Ub4yY2lah IQvB9LuuWKwI2g0PUFnnWbA+2bUVIJ18Wr20XUA70AScnNWmxVwcYN/jQO+pD4uyz84A xs/Vq1fJyxsEfAKEkIhdzzaAvzXAKJ3otQm6GcAXPnxres2kGyiNgjqWvMRoCKxZtjut fhPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=dQDJaq3S/DFnHUv0/jlr4FVNT8798o+LQwSJ638OzRQ=; b=BShxOF1sbcvgWFnBivW5C5lduvEs/8LI2bf58eknlUiSC1noKrEzj7FpbYI7LPeFxD XINePMUzLSo3gw/SdQMDxSMziSEY/qd1hxFh9fwMKgaZqUspfYKxmaQcq2TpMJaPzZwZ qg5EXYQm1DMaZCNm2Tsxicbfp1Wvwx2VWBhHyfXO+kuaBNZaaYkta/2XbNAMkqtqThNs scubFF7KmxGJjr73U443ii1/dkYmnS6Smtzgtf2z9uBLi/PmhWkQNtA+uGhties1/Jaf aunFFJuXxhb9mEXE2jEtB1R5ECnzQrBbjPS6OZ9wLH5LCpwTLpVt0ZT0n4qUVajJK7r+ Xa7g== X-Gm-Message-State: AO0yUKUOKaoj4EnFNZlLXdkLkcedtNP4s197ur46hPTi2612PseDWZMd mhsEuN46M7sPP9/NlZFOfxV6xQ== X-Google-Smtp-Source: AK7set88zIfnzcM8naNIxfuoFJRVK3IIblF8M//qvtJmTLyF8xobPxpQMNrtkMDLUya0nzzI3N+xGw== X-Received: by 2002:a05:6a20:394f:b0:be:a177:af42 with SMTP id r15-20020a056a20394f00b000bea177af42mr30719854pzg.62.1676314333667; Mon, 13 Feb 2023 10:52:13 -0800 (PST) Received: from jeff-laptop.lan (c-73-231-146-4.hsd1.ca.comcast.net. [73.231.146.4]) by smtp.gmail.com with ESMTPSA id c10-20020aa78e0a000000b005898fcb7c1bsm8523083pfr.177.2023.02.13.10.52.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Feb 2023 10:52:13 -0800 (PST) Message-ID: Subject: Re: ICU locale validation / canonicalization From: Jeff Davis To: Robert Haas Cc: pgsql-hackers@postgresql.org Date: Mon, 13 Feb 2023 10:52:11 -0800 In-Reply-To: References: <11b1eeb7e7667fdd4178497aeb796c48d26e69b9.camel@j-davis.com> <33acfc3a772224d668042bd2cbef88e91704ce25.camel@j-davis.com> 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 Fri, 2023-02-10 at 22:50 -0500, Robert Haas wrote: > The fact that you're figuring out how it all works from reading the > source code does not give me a warm feeling. Right. On the other hand, the behavior is quite well documented, it was just the keyword that was undocumented (or I didn't find it). > > But it seems like a better place for us than libc for the reasons I > > mentioned in the other thread. >=20 > It may be. But sometimes I feel that's not setting our sights very > high. :-( How much higher could we set our sights? What would the ideal collation provider look like? Those are good questions, but please let's take those questions to the thread about ICU as a default. The topic of this thread is: Given that we are already offering ICU support, should we canonicalize the locale string stored in the catalog? If so, should we use the ICU format locale IDs, or BCP 47 language tags? Do you have an opinion on that topic? If not, do you need additional information? --=20 Jeff Davis PostgreSQL Contributor Team - AWS