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

create custom collation from case insensitive portuguese

From: Alexandre Riveira <alexandre(at)objectdata(dot)com(dot)br>
To: pgsql-hackers(at)postgresql(dot)org
Subject: create custom collation from case insensitive portuguese
Date: 2010-12-05 10:33:38
Message-ID: 4CFB6A82.1050907@objectdata.com.br (view raw or flat)
Thread:
Lists: pgsql-hackers
Thanks to all the work they have done with this incredible database, 
postgresql.

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

LC_COLLATE
copy "iso14651_t1_ci"
reorder-after <U00A0>
<U0020> <CAP>; <CAP>; <CAP>; <U0020>
reorder-end


And in my tests I could change the behavior of the postgresql UPPER 
changing the file i18n ... etc.

toupper /
   (<U0061>, <U0041>);


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.

Could someone guide me please.

Thanks,

Alexandre Riveira
Brazil

Responses

pgsql-hackers by date

Next:From: Heikki LinnakangasDate: 2010-12-05 10:57:58
Subject: Re: Suggesting a libpq addition
Previous:From: Magnus HaganderDate: 2010-12-05 10:10:01
Subject: Re: Suggesting a libpq addition

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