Touch search question - Mailing list pgsql-admin

From dDave
Subject Touch search question
Date
Msg-id bna5m0paeag6aaluvssr68l8jvq7bg9tae@4ax.com
Whole thread Raw
List pgsql-admin
Hi,

With a database loaded with North American city names, and clients in
Québec, I have run into a tough problem for me. Taking input from a
text box, I use a regex to clean out any non-essential characters like
the set of (.- ) dot, dash, space etc...

I then do an ilike comparison on the city names to find matches and
report back the results. Problem is, a lot of cities have accented
names like Montréal. And I find that while e and E are easily matched
when using ILIKE, é is not É, making ILIKE a useless help...

How would one better craft a search capable of finding entries when
accented characters come into play? Should I look at creating a
mapping of say é and  É to just e?

Any thoughts on the best way to SELECT matches in this case most
appreciated!!

Dave


pgsql-admin by date:

Previous
From: "Gonzales,S"
Date:
Subject: Running 2 postmaster Instances on different ports
Next
From: "Steubesand Thomas"
Date:
Subject: Re: Building pgadmin3 from source