Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2013 The PostgreSQL Global Development Group