Skip to content

Commit 3e7d94f

Browse files
doc: Document pg_trgm being case-insensitive by default
pg_trgm is by default operating case-insensitively but the docs didn't mention that at all. Author: Erik Rijkers <[email protected]> Reviewed-by: Tom Lane <[email protected]> Reviewed-by: Daniel Gustafsson <[email protected]> Reported-by: [email protected] Discussion: https://postgr.es/m/[email protected]
1 parent d265cd2 commit 3e7d94f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/src/sgml/pgtrgm.sgml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,8 @@
416416
the above-described similarity operators, and additionally support
417417
trigram-based index searches for <literal>LIKE</literal>, <literal>ILIKE</literal>,
418418
<literal>~</literal>, <literal>~*</literal> and <literal>=</literal> queries.
419+
The similarity comparisons are case-insensitive in a default build of
420+
<filename>pg_trgm</filename>.
419421
Inequality operators are not supported.
420422
Note that those indexes may not be as efficient as regular B-tree indexes
421423
for equality operator.

0 commit comments

Comments
 (0)