Re: case and accent insensitive search under Python ? - Mailing list pgsql-general

From Tom Lane
Subject Re: case and accent insensitive search under Python ?
Date
Msg-id 2310992.1692452130@sss.pgh.pa.us
Whole thread Raw
In response to case and accent insensitive search under Python ?  (M4X <77M1C@gmx.com>)
List pgsql-general
M4X <77M1C@gmx.com> writes:
> It seem that is possible to make a search that is case and accent
> insensitive.
> |I've dig https://www.postgresql.org/docs/current/textsearch-intro.html
> and other resources,|
> |but I didn't find yet an example that demonstrate it.

The text search functionality is already case-insensitive, but not
accent-insensitive (at least in the common built-in configurations).
To make it accent-insensitive, you can set up a custom configuration
using the "unaccent" module.  See

https://www.postgresql.org/docs/current/unaccent.html

            regards, tom lane



pgsql-general by date:

Previous
From: Pierre Forstmann
Date:
Subject: how to use query_tree_walker to get all relations used in a query
Next
From: Justin Clift
Date:
Subject: Re: PG minor version in data directory?