Re: create custom collation from case insensitive portuguese

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Euler Taveira de Oliveira <euler(at)timbira(dot)com>
Cc: Alexandre Riveira <alexandre(at)objectdata(dot)com(dot)br>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: create custom collation from case insensitive portuguese
Date: 2010-11-02 17:57:26
Message-ID: AANLkTi=hYYHp5GH+4SLf5WwmwHAVUG7=uudgJYYpauy7@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Nov 2, 2010 at 8:40 AM, Euler Taveira de Oliveira
<euler(at)timbira(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2010-11-02 18:07:04 Re: Hash support for arrays
Previous Message Robert Haas 2010-11-02 17:54:51 Re: ALTER TYPE recursion to typed tables