Re: BUG #4697: to_tsvector hangs on input

Поиск
Список
Период
Сортировка
От Teodor Sigaev
Тема Re: BUG #4697: to_tsvector hangs on input
Дата
Msg-id 49B6A719.6090801@sigaev.ru
обсуждение исходный текст
Ответ на Re: BUG #4697: to_tsvector hangs on input  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Список pgsql-bugs
> When the parser sees the "@", it goes into "email state". In email
> state, it recurses, trying to find out if the string after the "@" is a
> valid hostname. That in turn goes into email state, recurses again and
> so forth, until you reach the end of the string. Then, the recursion
> unwinds back to the first @, moving on to the next character. At the
> next "@" the cycle repeats.
True

> Since the recursion only wants to know if the string after "@" is a
> valid hostname, we can stop the recursion as soon as we find out that
> it's not. The attached patch does that.
Committed to HEAD, 8.3 and 8.2, thank you. Previous releases are not affected.


--
Teodor Sigaev                                   E-mail: teodor@sigaev.ru
                                                    WWW: http://www.sigaev.ru/

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

Предыдущее
От: Kyle Butt
Дата:
Сообщение: Re: Bug with function returning composite types.
Следующее
От: "Yuri Cherio"
Дата:
Сообщение: BUG #4698: psql.exe is exits reporting "out of memory" error