From: rob stone <floriparob@gmail.com>
To: Max <maxabbr@yahoo.com.br>
To: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: Case and accent insensitive
Date: Wed, 27 Jan 2016 04:22:44 +1100
Message-ID: <1453828964.5658.3.camel@gmail.com> (raw)
In-Reply-To: <1461523717.1243810.1453806372489.JavaMail.yahoo@mail.yahoo.com>
References: <1461523717.1243810.1453806372489.JavaMail.yahoo.ref@mail.yahoo.com>
<1461523717.1243810.1453806372489.JavaMail.yahoo@mail.yahoo.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>
On Tue, 2016-01-26 at 11:06 +0000, Max wrote:
> Is there a collation for case and accent insensitive filter? I just
> found the use of operators like ILIKE ou CITEXT module but I can't
> use ILIKE in the queries and the CITEXT is a field-by-field solution
> for the case insensitive part of the problem. I also found
> the unaccent text search dictionary that could help with the accent
> part.
>
> In the MySQL world we have the database level
> collation latin1_swedish_ci where 'maca' = 'Maçã' is true and no
> field level configuration is required.
>
> This database is hosted in Amazon Cloud so I'm also limited by what I
> can do in this environment.
Have you considered storing the text in its HTML equivalent?
So "maçã" becomes "apple" in Portuguese.
You'd have to convert your query parameters before running the select.
My tuppence worth.
HTH
Robert
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: floriparob@gmail.com, maxabbr@yahoo.com.br
Subject: Re: Case and accent insensitive
In-Reply-To: <1453828964.5658.3.camel@gmail.com>
References: <1461523717.1243810.1453806372489.JavaMail.yahoo.ref@mail.yahoo.com> <1461523717.1243810.1453806372489.JavaMail.yahoo@mail.yahoo.com> <1453828964.5658.3.camel@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox