Oleg, Teodor, can you look at this?  I tried to fix it in wparser_def.c,
but couldn't figure out how.  Thanks.

select distinct token as email
from ts_parse('default', ' first_l...@yahoo.com '   )
where tokid = 4

Patch in attachment, it allows underscore in the middle of local part of email in in host name (similarly to '-' character).


I'm not sure about backpatching, because it could break existing search configuration.
--
Teodor Sigaev                                   E-mail: teo...@sigaev.ru
                                                   WWW: http://www.sigaev.ru/

Attachment: underscore.patch.gz
Description: Unix tar archive

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to