How to do a soundslike database query

Does Postgre have a way of doing a database search query similar to SOUNDEX? Like finding results that "soundlike" or are "closeto" what the person search for??

If so, how is it done or how can it be done?
cimmerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

earth man2Commented:
see postgresql-8.0.0beta4/contrib/fuzzystrmatch/README.soundex
0
earth man2Commented:
cd postgresql-8.0.0beta4/contrib/fuzzystrmatch
make

bash-2.05a$ pg_config --pkglibdir
/usr/lib/postgresql

copy libfuzzystrmatch.so `pg_config --pkglibdir`

dev=# CREATE FUNCTION levenshtein (text,text)
dev-# RETURNS int
dev-# AS '$libdir/libfuzzystrmatch','levenshtein'
dev-# LANGUAGE 'C' WITH (iscachable, isstrict);
CREATE FUNCTION
dev=#
dev=# CREATE FUNCTION metaphone (text,int)
dev-# RETURNS text
dev-# AS '$libdir/libfuzzystrmatch','metaphone'
dev-# LANGUAGE 'C' WITH (iscachable, isstrict);
CREATE FUNCTION
dev=#
dev=# CREATE FUNCTION soundex(text) RETURNS text
dev-# AS '$libdir/libfuzzystrmatch', 'soundex'
dev-# LANGUAGE 'C' WITH (iscachable, isstrict);
ERROR:  function "soundex" already exists with same argument types
dev=#
dev=# CREATE FUNCTION text_soundex(text) RETURNS text
dev-# AS '$libdir/libfuzzystrmatch', 'soundex'
dev-# LANGUAGE 'C';
CREATE FUNCTION
dev=#
dev=# CREATE FUNCTION dmetaphone (text) RETURNS text
dev-# LANGUAGE C IMMUTABLE STRICT
dev-# AS '$libdir/libfuzzystrmatch', 'dmetaphone';
CREATE FUNCTION
dev=#
dev=# CREATE FUNCTION dmetaphone_alt (text) RETURNS text
dev-# LANGUAGE C IMMUTABLE STRICT
dev-# AS '$libdir/libfuzzystrmatch', 'dmetaphone_alt';
CREATE FUNCTION

dev=# select soundex( 'joan' ) = soundex( 'john' );
 ?column?
----------
 t
(1 row)
dev=# select dmetaphone( 'bow' ) = dmetaphone( 'bough' );
 ?column?
----------
 t

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PostgreSQL

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.