Re: [BUGS] BUG #5021: ts_parse doesn't recognize email addresses with underscores

Поиск
Список
Период
Сортировка
От Teodor Sigaev
Тема Re: [BUGS] BUG #5021: ts_parse doesn't recognize email addresses with underscores
Дата
Msg-id 4B882B29.1070308@sigaev.ru
обсуждение исходный текст
Ответ на Re: [BUGS] BUG #5021: ts_parse doesn't recognize email addresses with underscores  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: [BUGS] BUG #5021: ts_parse doesn't recognize email addresses with underscores
Список pgsql-hackers
> 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_last@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: teodor@sigaev.ru
                                                    WWW: http://www.sigaev.ru/

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Yeb Havinga
Дата:
Сообщение: Re: Avoiding bad prepared-statement plans.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Re: Hot Standby query cancellation and Streaming Replication integration