Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s6b5A-000b8W-39 for pgsql-docs@arkaria.postgresql.org; Mon, 13 May 2024 19:11:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1s6b4B-004bey-Fl for pgsql-docs@arkaria.postgresql.org; Mon, 13 May 2024 19:10:31 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s6b4B-004beq-2z for pgsql-docs@lists.postgresql.org; Mon, 13 May 2024 19:10:31 +0000 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1s6b48-0002lC-Id for pgsql-docs@lists.postgresql.org; Mon, 13 May 2024 19:10:29 +0000 Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1f05b669b6cso22399245ad.3 for ; Mon, 13 May 2024 12:10:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20230601.gappssmtp.com; s=20230601; t=1715627428; x=1716232228; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=2B1hBVqfgRgLttreE+H0MAPfTW/p1rzZl3+kC8jzVpE=; b=q7kQFtYU1Pyc1lMQVX+VahnQ7fwIVBKn/ENJVmE6PeOk1tF23DfAw6//ttA4JFsqg7 hEFuklyteGG5rptg6yGLRCLQX277qnjlzoivuuo1nBVKcir7EBvOVB8AzSququHFevff X+H8EcyDO27Yqkz38UuZaVe0OiHBixMJ0KXleKfyKyIqpNApKOgYm0+DW36cBvq/qz1s MMvNvHy3dY9ZrFld3ZFLWTyRVq79d49CU7KFAl5CYX4W+38PQWeEl4L3R2xQ9aBf9Yza 08eFZ2bue76RcqtAjHGNiOr/1ki4avKW2MwPdx643/KwNVb/J08Kt/uOmBBF3CeDKg5q 12uA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715627428; x=1716232228; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=2B1hBVqfgRgLttreE+H0MAPfTW/p1rzZl3+kC8jzVpE=; b=Zv31GqCgK8rNpGB/dgO64GjyLG0pfvJrF+RIKdM1Tt5wuW0PN0ek79C3lxUNsFUK8p yXtY99sFyVXy91APmtyMRv49I256ObsXMHaYnmPPX60kPH4EmmWjt8TEEHoTRRAaxX3h n61u6rMaqSVTNiHB1hyrge0mdQmcM1pPVc5YxyX+arrLJFIC7C9UlobpsE5oqEVgh6AW n0LSAyGdiwcvV/TWBXOdIk9PsGX2AvzqKriYvqadzvIcrPPivOSnY/Dz/DeM0sTfRZLF p1Wu7Hdff+cizPMwyxAUOdOFzCdjYlGFPVboIYkG5bFLmNigTe8DhIIbKaCjiYFVHugt skvw== X-Forwarded-Encrypted: i=1; AJvYcCVDPKy0wjZfgt4BaTaghrKr3XfvLRzzUZeMlV991hLuXrDGxUVVK+E6Ns07W7nvk9TgmaNxnvWxrjD9d+WG7yYDSHg+kfYQxOj7vCTxBa+i X-Gm-Message-State: AOJu0YwsBCwoqR9fb3L0ytX4qYCLSvR7bf4LPErh/1NhJZOVQ/IAfq6M Q2c2aPXq2/EyrtbaVJnC2i2tTOb8JaphpAB5bdNJCwbclyBCrdWIecLwdu5TAA== X-Google-Smtp-Source: AGHT+IGbvJftnv9qjWuNu7YwDvnm3peXxlFgAKuXUkSBee8VMyUzmCYn2HfIIniUHg+OuY4svLcGqg== X-Received: by 2002:a17:902:ef8a:b0:1e4:9616:d967 with SMTP id d9443c01a7336-1ef43d1704dmr95430005ad.15.1715627427643; Mon, 13 May 2024 12:10:27 -0700 (PDT) Received: from jeff-laptop.lan (c-76-102-242-158.hsd1.ca.comcast.net. [76.102.242.158]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1ef0c03aadbsm82617985ad.227.2024.05.13.12.10.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 12:10:27 -0700 (PDT) Message-ID: <20d80bfbbec3874d430691fec37465fb7c4cb277.camel@j-davis.com> Subject: Re: Explanations not clear From: Jeff Davis To: Peter Eisentraut , florian.murat.koch@gmail.com, pgsql-docs@lists.postgresql.org Date: Mon, 13 May 2024 12:10:25 -0700 In-Reply-To: References: <171501838010.704.2474442958031349608@wrigleys.postgresql.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4-0ubuntu2 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 2024-05-08 at 08:52 +0200, Peter Eisentraut wrote: > > I created a collation specifying the ks-level3 setting and with > > deterministic set to false. But when I compare "a_b" to "a-b" with > > this > > collation I get false. According to the table 24.1 it should yield > > true. > > Only after adding ka-shifted this comparison becomes true. The > > interactions > > of the different options are not very clear. >=20 > I think table 24.1 is somewhat incorrect in the sense that > punctuation=20 > is only level 4 if you use ka-shifted, otherwise it's level 1.=C2=A0 This= =20 > should perhaps be clarified. One option is to just include 3 levels (plus "identic") in the table, and then later document that ka-shifted creates a fourth level and moves punctuation character differences into that level. That explains the mechanism but detracts from the examples. Another option is to say that all the examples in the table are using ka-shifted for illustration purposes. I like this option, but it's a bit awkward because it refers to something that hasn't been explained yet. It's also only relevant for the 'x-y' =3D 'x_y' example, which might be slightly confusing. Thoughts? Regards, Jeff Davis