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 1q2LFR-0003cx-FR for pgsql-hackers@arkaria.postgresql.org; Fri, 26 May 2023 00:24:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1q2LFP-0008Cr-KA for pgsql-hackers@arkaria.postgresql.org; Fri, 26 May 2023 00:23:59 +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 1q2LFP-0008BC-1u for pgsql-hackers@lists.postgresql.org; Fri, 26 May 2023 00:23:59 +0000 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1q2LFM-001uLe-CZ for pgsql-hackers@lists.postgresql.org; Fri, 26 May 2023 00:23:57 +0000 Received: by mail-pj1-x102a.google.com with SMTP id 98e67ed59e1d1-25376483f66so241145a91.0 for ; Thu, 25 May 2023 17:23:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20221208.gappssmtp.com; s=20221208; t=1685060635; x=1687652635; 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=RyKvxrpCg7naixEu28y1L4UEMHrbU3yh9x5OCb4c0LU=; b=cAK7gu6fjVL93G5KvejOaFIqFPl+Wzu/0U6Ng322y8B+XBZaNy7OitB0FfxbOf803l yGgsIAJSqkr4aamc5cDfZ8iJXLo8J9gZpEYNK2acw0P8+4jTNnWHHTof3tI2JOvpN1Tg 1PW2CFp055DgTGhW4A+yI0ElDmigF8UYLc/jus7QNb40/BUw4NJtdUdvW29ft0RL5hgp qLnggn6LXJFMgqa93jiZZDbpGf+isOiqXdBM1puTKNeZ5an5KJYouqgCQQZA6vKUKTTy 4Krk9MQMr8wzdMwiQWU9rC5ACMNK/iEvq1fIyGXBLnhXitzWBlK2inqMIL8NWGThxVKp krHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685060635; x=1687652635; 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=RyKvxrpCg7naixEu28y1L4UEMHrbU3yh9x5OCb4c0LU=; b=FhLIEAgqqieMPFCZQb5E4faeXZ3Uhp+WBU+V6ezk1lq7oOiTWaRTNWkjDGzT5rWWj/ omGeng0XBWO2xXzKE5tSA2vpu8JsmGfumkE1DpOg70Xf5u5PInEOTbI+tkAWngRvGM3I Azz3RCtxsiQxhozRJr5rvpDMwlhKbmENbXeiyq9x9USgSZnEZUQeLWWNwhjZe+blgzcV WbGyiNVk5+NiW35UAnv/t+vt+09p7ck68I4G68lcXx7uhoDRxJ7l+XQ5eLbBOKuKM5G3 gM614BEhSZZC+rJAE7zfVCqAYERX8cU8dtx6fx0k0ZgpsqUl4LSRKe7VK1BCvpF4f46g GVMw== X-Gm-Message-State: AC+VfDxqziMElRPPFRXQtqNjnaTRNpjxZUNT3VOHlZn80hRwf6qMvRml 9wvNsaiZSx/oQFm64mxt14XGlY1LC4X/ZD+Xy48= X-Google-Smtp-Source: ACHHUZ6/OLS7lTbFWIYTU3PmCE7RpNlVIbb5VB3GJW76PluqancxFJeTiF09cQcN5s5lydF+hPjXpQ== X-Received: by 2002:a17:90a:77c3:b0:250:acb7:21da with SMTP id e3-20020a17090a77c300b00250acb721damr421770pjs.38.1685060635580; Thu, 25 May 2023 17:23:55 -0700 (PDT) Received: from jeff-laptop.lan (c-73-170-46-202.hsd1.ca.comcast.net. [73.170.46.202]) by smtp.gmail.com with ESMTPSA id j6-20020a17090a734600b00253239144c5sm1715843pjs.42.2023.05.25.17.23.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 May 2023 17:23:54 -0700 (PDT) Message-ID: Subject: Re: Order changes in PG16 since ICU introduction From: Jeff Davis To: Peter Eisentraut , "Jonathan S. Katz" , Robert Haas Cc: Tom Lane , Regina Obe , Sandro Santilli , pgsql-hackers@lists.postgresql.org Date: Thu, 25 May 2023 17:23:53 -0700 In-Reply-To: <275c47ea-e7f3-e654-c99a-63bc116997d7@enterprisedb.com> References: <000b01d97465$c34bbd60$49e33820$@pcorp.us> <3353947.1682092131@sss.pgh.pa.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> <275c47ea-e7f3-e654-c99a-63bc116997d7@enterprisedb.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 Mon, 2023-05-22 at 14:34 +0200, Peter Eisentraut wrote: > Please put blank lines between >=20 > > >=20 > etc., matching existing style. >=20 > We usually don't capitalize the collation parameters like >=20 > CREATE COLLATION mycollation1 (PROVIDER =3D icu, LOCALE =3D 'ja-JP); >=20 > elsewhere in the documentation. >=20 > Table 24.2. ICU Collation Settings should probably be sorted by key, > or=20 > at least by something. >=20 > All tables should referenced in the text, like "Table x.y shows this > and=20 > that."=C2=A0 (Note that a table could float to a different page in some= =20 > output formats, so just putting it into a section without some=20 > introductory text isn't sound.) Thank you, done. > Table 24.1. ICU Collation Levels shows punctuation as level 4, which > is=20 > only true in shifted mode, which isn't the default.=C2=A0 The whole > business=20 > of treating variable collation elements is getting a bit lost in this > description.=C2=A0 The kv option is described as "Classes of characters= =20 > ignored during comparison at level 3.", which is effectively true but > not the whole picture. I organized the documentation around practical examples and available options, and less around the conceptual model. I think that's a good start, but you're right that it over-simplifies in a few areas. Discussing the model would work better along with an explanation of ICU rules, where you can make better use of those concepts. I feel like there are some interesting things that can be done with rules, but I haven't had a chance to really dig in yet. Regards, Jeff Davis