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 1oO46m-0005iN-QT for pgsql-docs@arkaria.postgresql.org; Tue, 16 Aug 2022 21:28:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oO46k-0004Xz-6k for pgsql-docs@arkaria.postgresql.org; Tue, 16 Aug 2022 21:28:18 +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 1oO46j-0004Xq-V4 for pgsql-docs@lists.postgresql.org; Tue, 16 Aug 2022 21:28:17 +0000 Received: from smtp.outgoing.loopia.se ([93.188.3.37]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oO46h-0005fy-BO for pgsql-docs@lists.postgresql.org; Tue, 16 Aug 2022 21:28:17 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id 2BD742F4CB12 for ; Tue, 16 Aug 2022 23:28:14 +0200 (CEST) Received: from s899.loopia.se (unknown [172.22.191.6]) by s807.loopia.se (Postfix) with ESMTP id 1C10D2E2CDA3; Tue, 16 Aug 2022 23:28:14 +0200 (CEST) Received: from s473.loopia.se (unknown [172.22.191.6]) by s899.loopia.se (Postfix) with ESMTP id 177002C8BA58; Tue, 16 Aug 2022 23:28:14 +0200 (CEST) X-Virus-Scanned: amavisd-new at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -1.01 X-Spam-Level: X-Spam-Status: No, score=-1.01 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=disabled Received: from s981.loopia.se ([172.22.191.5]) by s473.loopia.se (s473.loopia.se [172.22.190.13]) (amavisd-new, port 10024) with LMTP id mdo7LRZJgMUn; Tue, 16 Aug 2022 23:28:13 +0200 (CEST) X-Loopia-Auth: user X-Loopia-User: daniel@yesql.se X-Loopia-Originating-IP: 89.255.232.193 Received: from smtpclient.apple (customer-89-255-232-193.stosn.net [89.255.232.193]) (Authenticated sender: daniel@yesql.se) by s981.loopia.se (Postfix) with ESMTPSA id AE0F322B170F; Tue, 16 Aug 2022 23:28:13 +0200 (CEST) From: Daniel Gustafsson Message-Id: <7657EDEE-5EE2-4AAB-BA95-47B4F71653E1@yesql.se> Content-Type: multipart/mixed; boundary="Apple-Mail=_BC3219CF-6E27-477D-89A4-F4E27BC81354" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\)) Subject: Re: Lower or Upper case for F.33. pg_trgm Date: Tue, 16 Aug 2022 23:28:13 +0200 In-Reply-To: <1119558.1660658030@sss.pgh.pa.us> Cc: Erik Rijkers , marcmaiwald@googlemail.com, pgsql-docs@lists.postgresql.org To: Tom Lane References: <166064504415.652.12724576876807446945@wrigleys.postgresql.org> <65FB8525-EB15-4A22-B204-51385A088D64@yesql.se> <3856dba5-81c8-8221-90e6-5307679f9be7@xs4all.nl> <5B31E9AC-9F6B-47BB-85DB-188507CF6297@yesql.se> <4be605ae-7fbb-c47c-9c7f-f8965ff0ea9e@xs4all.nl> <1119558.1660658030@sss.pgh.pa.us> X-Mailer: Apple Mail (2.3696.100.31) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Apple-Mail=_BC3219CF-6E27-477D-89A4-F4E27BC81354 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On 16 Aug 2022, at 15:53, Tom Lane wrote: >=20 > Erik Rijkers writes: >> (bluntly stating 'similarity comparisons are case-insensitive' -=20 >> although I'm not really sure..) >=20 > Perhaps like "similarity comparisons are case-insensitive in a > standard build of pg_trgm", if you want to nod to the existence > of a compile option without going into detail. Looking at this I'm leaning towards paring down the diff posted upthread = with pretty much this, I think that will provide value while avoid causing confusion. As a related side note, there are four instances of "case = insensitive{ly}" in the docs with all other instances using "case-insensitive{ly}". I'm = inclined to fix those four to use a dash while at it to be consistent across all = pages. -- Daniel Gustafsson https://vmware.com/ --Apple-Mail=_BC3219CF-6E27-477D-89A4-F4E27BC81354 Content-Disposition: attachment; filename=pg_trgm_case.diff Content-Type: application/octet-stream; x-unix-mode=0644; name="pg_trgm_case.diff" Content-Transfer-Encoding: 7bit diff --git a/doc/src/sgml/pgtrgm.sgml b/doc/src/sgml/pgtrgm.sgml index 7e29282255..fefe30afb7 100644 --- a/doc/src/sgml/pgtrgm.sgml +++ b/doc/src/sgml/pgtrgm.sgml @@ -416,6 +416,8 @@ the above-described similarity operators, and additionally support trigram-based index searches for LIKE, ILIKE, ~, ~* and = queries. + The similarity comparisons are case-insensitive in a default build of + pg_trgm. Inequality operators are not supported. Note that those indexes may not be as efficient as regular B-tree indexes for equality operator. --Apple-Mail=_BC3219CF-6E27-477D-89A4-F4E27BC81354--