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 1q14dG-0006U5-6a for pgsql-hackers@arkaria.postgresql.org; Mon, 22 May 2023 12:27: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 1q14dD-0002ta-P5 for pgsql-hackers@arkaria.postgresql.org; Mon, 22 May 2023 12:27:19 +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 1q14dD-0002tQ-Ev for pgsql-hackers@lists.postgresql.org; Mon, 22 May 2023 12:27:19 +0000 Received: from new4-smtp.messagingengine.com ([66.111.4.230]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1q14d8-001O9x-RV for pgsql-hackers@lists.postgresql.org; Mon, 22 May 2023 12:27:18 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailnew.nyi.internal (Postfix) with ESMTP id A0A82580399; Mon, 22 May 2023 08:27:13 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 22 May 2023 08:27:13 -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=fm1; t= 1684758433; x=1684765633; bh=xV/i5ajreHvTilaM7nfWWxSWdCBCWDruvV5 ob5G1I/s=; b=Iox8TSI3PfuNxcHEfvegpaQTOJvuCESmYTdeyvzxkBSNfmwDw8Y Ql724GOo92VgO87Iqd8gSdjitb6D5937nc9FFH0XTMGcp0I8WcQwKfb8TDRL6AHq /bz5UBRP1lBLS8etenMJUsRg/A4WBVC5t5Fs34X1ZUg4dyGRZ3/K8Jg8qg2KGx+5 3U1yJ5xIVsDnKXNz6xmv+yCaL8o5sFOQgJ7Rl3sAwCXfGuLcKRLxzhU5xB8+YlMc 04CIZsV3kJwTzr6UAbFzxmd/E4VuausEI7XCQnJm1szw4+myIoGeqIbi3Oso+Ye7 EOIZAVlbLaTpXr/CE2Z8xfyQ3qFJ0tdKTVg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeejuddggedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvghnth gvrhhprhhishgvuggsrdgtohhmqeenucggtffrrghtthgvrhhnpeffteefjeehtefhudff udeigeejtdegvdeiuddvvdekleehhefhteekteffffeigfenucffohhmrghinhepvghish gvnhhtrhgruhhtrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm rghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgruhhtsegvnhhtvghrphhrihhsvg gusgdrtghomh X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 22 May 2023 08:27:11 -0400 (EDT) Message-ID: <74706bb8-4fb0-fbab-7e88-648ae04f2588@enterprisedb.com> Date: Mon, 22 May 2023 14:27:10 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: Order changes in PG16 since ICU introduction Content-Language: en-US To: Jeff Davis , "Jonathan S. Katz" , Robert Haas Cc: Tom Lane , Regina Obe , Sandro Santilli , pgsql-hackers@lists.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> From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 18.05.23 19:55, Jeff Davis wrote: > On Wed, 2023-05-17 at 19:59 -0400, Jonathan S. Katz wrote: >> I did a quicker read through this time. LGTM overall. I like what you >> did with the explanations around sensitivity (now it makes sense). > > Committed, thank you. > > There are a few things I don't understand that would be good to > document better: > > * Rules. I still don't quite understand the use case: are these for > people inventing new languages? What is a plausible use case that isn't > covered by the existing locales and collation settings? Do rules make > sense for a database default collation? Are they for language experts > only or might an ordinary developer benefit from using them? The rules are for setting whatever sort order you like. Maybe you want to sort + before - or whatever. It's like, if you don't like it, build your own. > * The collation types "phonebk", "emoji", etc.: are these variants of > particular locales, or do they make sense in multiple locales? I don't > know where they fit in or how to document them. The k* settings are parametric settings, in that they transform the sort key in some algorithmic way. The co settings are just everything else. They are not parametric, they are just some other sort order that someone spelled out explicitly. > * I don't understand what "kc" means if "ks" is not set to "level1". There is an example here: https://peter.eisentraut.org/blog/2023/05/16/overview-of-icu-collation-settings#colcaselevel