Re: create custom collation from case insensitive portuguese - Mailing list pgsql-hackers

From Robert Haas
Subject Re: create custom collation from case insensitive portuguese
Date
Msg-id AANLkTi=hYYHp5GH+4SLf5WwmwHAVUG7=uudgJYYpauy7@mail.gmail.com
Whole thread Raw
In response to Re: create custom collation from case insensitive portuguese  (Euler Taveira de Oliveira <euler@timbira.com>)
Responses Re: create custom collation from case insensitive portuguese
List pgsql-hackers
On Tue, Nov 2, 2010 at 8:40 AM, Euler Taveira de Oliveira
<euler@timbira.com> wrote:
> Alexandre Riveira escreveu:
>> I've achieved some success in changing collate operating system (linux)
>> to generate sort of way of Brazil Portuguese hopes by adding the
>> following code in LC_COLLATE
>>
> This was already discussed; search the archives [1] [2].
>
>> So far, I understood the mechanism of change collate and reproduce in
>> postgresql, and I could not generate a case-insensitive search, I
>> believe that would change within the LC_COLLATE variable, but could not
>> go any further than that.
>>
> PostgreSQL doesn't support case-insensitive searches specifying the collate
> per column yet. Look at [3]. But you could use ILIKE or regular expression to
> achieve  that.

Is citext also useful for this?

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: ALTER TYPE recursion to typed tables
Next
From: Robert Haas
Date:
Subject: Re: Hash support for arrays