Re: to_tsquery stack overflow

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: to_tsquery stack overflow
Дата
Msg-id 27418.1188482950@sss.pgh.pa.us
обсуждение исходный текст
Ответ на to_tsquery stack overflow  ("Heikki Linnakangas" <heikki@enterprisedb.com>)
Список pgsql-bugs
"Heikki Linnakangas" <heikki@enterprisedb.com> writes:
> The problem seems to be unbounded recursion in the makepol function that
> converts the input query from infix to polish notation. An easy fix
> would be to just add a level parameter to makepol that's incremented on
> each recursion, and throw an error if it grows bigger than some safe
> limit.

check_stack_depth() seems the correct fix.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #3589: /etc/init.d/postgresql reload doesn't reflect /etc/postgresql/postgresql.conf log_statement
Следующее
От: Cyrus Downey
Дата:
Сообщение: Re: BUG #3587: EXECUTE and trigger problem [VASCL:A1226546842]