Help on collation and accent sensitivity

From: "jlmssilva" <jlmssilva(at)netcabo(dot)pt>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Help on collation and accent sensitivity
Date: 2005-12-07 20:03:04
Message-ID: BE2B56AC76A82B4F91B39776DA74494D013FA906@VS4.hdi.tvcabo
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

This is probably a very basic question but I'm having a problem writing queries that should be accent insensitive. I have pg v8.1 for Windows installed with Portuguese support and everything works fine except a very basic thing.

An example query like the following:

select name from clients where name like '%Jose%'

should return all names including Jose or Jose' (or any other accent variation) because they are equivalent but I'm getting from pg only the ones I specifically include in the query expression. We have lots of expressions with equivalents like these and it is not possible to explicitly decompose a query in all possible variations. I've also verified that it sorts correctly ignoring accents and the problem is only in querying. I'm experienced with SQL Server (now learning pg) and there only by choosing the appropriate collation I get case/accent sensitivity policy well defined. Is there any similar parameter in pg that I've missed and have the same effect?

Can anybody help me on this?

Many thanks

JLS

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2005-12-07 21:33:25 Re: Memory Leakage Problem
Previous Message Oleg Bartunov 2005-12-07 19:50:52 Re: fts, compond words?