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 1pbymN-0006yK-2W for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Mar 2023 07:09:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pbymL-0000bT-QU for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Mar 2023 07:09:01 +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 1pbymL-0000ad-GW for pgsql-hackers@lists.postgresql.org; Tue, 14 Mar 2023 07:09:01 +0000 Received: from wnew1-smtp.messagingengine.com ([64.147.123.26]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pbymJ-0005uB-37 for pgsql-hackers@postgresql.org; Tue, 14 Mar 2023 07:09:00 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.west.internal (Postfix) with ESMTP id 6748B2B06754; Tue, 14 Mar 2023 03:08:57 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Tue, 14 Mar 2023 03:08:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1678777737; x=1678784937; bh=NG7wJwpmgoMRM0TmrY+zACSz1csTy2YYGiu DkS6OaFc=; b=ZsMMhz5VShvPTknvP/mHptQvOpoYDYM9h3jZrK28b3IVbaijhcN 85Cf4Ja8cFt1ajOb2Rzzj2c2NPGISAr/N1/M2IC/2fpWXtVyHXK6XK2An60Iq4Zp bG7+roc9eF3IPeiJl3GIapst3eqbGSREnrJghuF3UC+NlPosQtLVLyDq4/YENW4G BQ/4RgrYRQZLq6m53T+5zVksIXTscZnrfH2f14hDI2XZeX4AaQVEATHBN7OhaVFx cLnGZyQNZm26J30QTAkyneIuGaje8LdzFv2iN35t+NGfCp5Y2zpwWrC/RJiLElvt OXSQFUfhy8VyUIctGIpYCIzTgiq2nhNUUbQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvddvhedguddtfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfevfhfhjggtgfesthekredttdefjeenucfhrhhomheprfgv thgvrhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsegvnh htvghrphhrihhsvggusgdrtghomheqnecuggftrfgrthhtvghrnhephfejudeuleefheeu tddufeetjeevgeeiieeujeeuheefkedttdeuieeiieethfevnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgr uhhtsegvnhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 14 Mar 2023 03:08:55 -0400 (EDT) Message-ID: <1569fa4c-aded-57c4-eb07-3bcf03c5e423@enterprisedb.com> Date: Tue, 14 Mar 2023 08:08:55 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: ICU locale validation / canonicalization Content-Language: en-US To: Jeff Davis , Robert Haas Cc: pgsql-hackers@postgresql.org References: <11b1eeb7e7667fdd4178497aeb796c48d26e69b9.camel@j-davis.com> <33acfc3a772224d668042bd2cbef88e91704ce25.camel@j-davis.com> <6f32de82-88e2-480a-8421-07add8f5dee5@enterprisedb.com> <8c7af6820aed94dc7bc259d2aa7f9663518e6137.camel@j-davis.com> <4eebea80f528b1b5e381d6e834497bd6983e4e93.camel@j-davis.com> <899ab44a-4307-064f-0945-412723d57c02@enterprisedb.com> <857da8b1-2a1e-a2be-7df9-7f5e85a3bcb7@enterprisedb.com> <0d7c4115e3dd3581cec125207cbd72cab677c238.camel@j-davis.com> From: Peter Eisentraut In-Reply-To: <0d7c4115e3dd3581cec125207cbd72cab677c238.camel@j-davis.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 13.03.23 16:31, Jeff Davis wrote: >> What we had discussed a while ago in one of these threads is that ICU >> before version 54 do not support keyword lists, and we have custom >> code >> to do that parsing ourselves, but we don't have code to do the same >> for >> language tags.  Therefore, if I understand this right, if we >> automatically convert ICU locale IDs to language tags, as shown >> above, >> then we break support for such locales in those older ICU versions. > > Right. In versions 53 and earlier, and during pg_upgrade, we would just > preserve the locale string as entered. Another issue that came to mind: Right now, you can, say, develop SQL schemas on a newer ICU version, say, your laptop, and then deploy them on a server running an older ICU version. If we have a cutoff beyond which we convert ICU locale IDs to language tags, then this won't work anymore for certain combinations. And RHEL/CentOS 7 is still pretty popular.