Unix Technical Forum

soundex and metaphone

This is a discussion on soundex and metaphone within the pgsql Hackers forums, part of the PostgreSQL category; --> Hey everyone, I've been working with a couple people who didn't know that soundex and metaphone were included in ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-11-2008, 05:03 AM
Jonah H. Harris
 
Posts: n/a
Default soundex and metaphone

Hey everyone,

I've been working with a couple people who didn't know that soundex and
metaphone were included in the distribution as contrib modules. While
it's their fault that they didn't check contrib, soundex is pretty
common among database systems and I was wondering if there was a reason
it is not included as a core function?

-Jonah

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-11-2008, 05:04 AM
Douglas McNaught
 
Posts: n/a
Default Re: soundex and metaphone

"Jonah H. Harris" <jharris@tvi.edu> writes:

> Hey everyone,
>
> I've been working with a couple people who didn't know that soundex
> and metaphone were included in the distribution as contrib modules.
> While it's their fault that they didn't check contrib, soundex is
> pretty common among database systems and I was wondering if there was
> a reason it is not included as a core function?


Because no one's taken ownership of the code and made a case for
integrating it into the core backend.

-Doug

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-11-2008, 05:04 AM
Jonah H. Harris
 
Posts: n/a
Default Re: soundex and metaphone

At a minimum I think we should support soundex in the core. I'm willing
to move soundex and metaphone into the backend. Does anyone see a
reason not to do so?

Douglas McNaught wrote:

>"Jonah H. Harris" <jharris@tvi.edu> writes:
>
>
>
>>Hey everyone,
>>
>>I've been working with a couple people who didn't know that soundex
>>and metaphone were included in the distribution as contrib modules.
>>While it's their fault that they didn't check contrib, soundex is
>>pretty common among database systems and I was wondering if there was
>>a reason it is not included as a core function?
>>
>>

>
>Because no one's taken ownership of the code and made a case for
>integrating it into the core backend.
>
>-Doug
>
>---------------------------(end of broadcast)---------------------------
>TIP 9: the planner will ignore your desire to choose an index scan if your
> joining column's datatypes do not match
>
>



---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-11-2008, 05:04 AM
Peter Eisentraut
 
Posts: n/a
Default Re: soundex and metaphone

Jonah H. Harris wrote:
> At a minimum I think we should support soundex in the core. I'm
> willing to move soundex and metaphone into the backend. Does anyone
> see a reason not to do so?


Soundex is really only useful for English names with English
pronunciation. If we were to adapt a phonetic algorithm into the core,
I'd like to see something more general.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-11-2008, 05:04 AM
Jonah H. Harris
 
Posts: n/a
Default Re: soundex and metaphone

Peter,

I don't disagree with you that a more generalized function would also be
good, just that soundex is common and would be helpful if it were built-in.

Peter Eisentraut wrote:

>Jonah H. Harris wrote:
>
>
>>At a minimum I think we should support soundex in the core. I'm
>>willing to move soundex and metaphone into the backend. Does anyone
>>see a reason not to do so?
>>
>>

>
>Soundex is really only useful for English names with English
>pronunciation. If we were to adapt a phonetic algorithm into the core,
>I'd like to see something more general.
>
>
>



---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-11-2008, 05:04 AM
Andrew Dunstan
 
Posts: n/a
Default Re: soundex and metaphone



Jonah H. Harris wrote:

> At a minimum I think we should support soundex in the core. I'm
> willing to move soundex and metaphone into the backend. Does anyone
> see a reason not to do so?
>
>

I take it you mean apart from the fact that soundex is horribly limited
and out of data and probably nobody should be using it?

cheers

andrew

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-11-2008, 05:04 AM
Andrew Dunstan
 
Posts: n/a
Default Re: soundex and metaphone



Tom Lane wrote:

>"Jonah H. Harris" <jharris@tvi.edu> writes:
>
>
>>At a minimum I think we should support soundex in the core. I'm willing
>>to move soundex and metaphone into the backend. Does anyone see a
>>reason not to do so?
>>
>>

>
>Is it really ready for prime time? For one thing, a quick look shows no
>evidence of being multibyte-ready. There's a fair amount of cleanup of
>random private coding conventions (META_MALLOC!?) to be done too.
>
>Doug's point is valid: there's some actual work needed here, not just
>arguing to shove the code from point A to point B.
>
>
>
>


Well, META_MALLOC occurs in part of the code that he didn't ask for ...
it was inherited from the perl module code that I adapted to do double
metaphone. And a minimal wrapper suited my purposes at the time just fine.

But the point is well taken nevertheless.

cheers

andrew

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-11-2008, 05:04 AM
Tom Lane
 
Posts: n/a
Default Re: soundex and metaphone

"Jonah H. Harris" <jharris@tvi.edu> writes:
> At a minimum I think we should support soundex in the core. I'm willing
> to move soundex and metaphone into the backend. Does anyone see a
> reason not to do so?


Is it really ready for prime time? For one thing, a quick look shows no
evidence of being multibyte-ready. There's a fair amount of cleanup of
random private coding conventions (META_MALLOC!?) to be done too.

Doug's point is valid: there's some actual work needed here, not just
arguing to shove the code from point A to point B.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-11-2008, 05:05 AM
Ron Mayer
 
Posts: n/a
Default Re: soundex and metaphone

Jonah H. Harris wrote:
> I'm willing to move soundex and metaphone into the backend.
> Does anyone see a reason not to do so?


As a kinda strange reason, I like them in contrib because
they demonstrate a nice simple example of how one can write a
contrib extension.

This module has simple functions that take a string or
two and return a string or number. Most of the other
contrib modules do tricky stuff with weird types or
indexes that make them rather complex to use as
a starting point.

If they were to be moved out of contrib, I think it'd be
really nice if someone add a "hello_world" contrib that
demonstrates a bunch of simple operations in C to be used
as such a model.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:43 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com