Re: Stack overflow issue

Поиск
Список
Период
Сортировка
От Richard Guo
Тема Re: Stack overflow issue
Дата
Msg-id CAMbWs48iswb9cXXnq1Ocy0WLdov__1eR=qenRP+a3x1PJiphJg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Stack overflow issue  (Richard Guo <guofenglinux@gmail.com>)
Ответы Re: Stack overflow issue  (mahendrakar s <mahendrakarforpg@gmail.com>)
Re: Stack overflow issue  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers

On Wed, Aug 24, 2022 at 7:12 PM Richard Guo <guofenglinux@gmail.com> wrote:

On Wed, Aug 24, 2022 at 6:49 PM Alvaro Herrera <alvherre@alvh.no-ip.org> wrote:
On 2022-Aug-24, mahendrakar s wrote:

> Hi,
> Can we have a parameter to control the recursion depth in these cases to
> avoid crashes?

We already have one (max_stack_depth).  The problem is lack of calling
the control function in a few places.
 
Thanks Egor and Alexander for the work! I think we can just add
check_stack_depth checks in these cases.
 
Attached adds the checks in these places. But I'm not sure about the
snowball case. Can we edit src/backend/snowball/libstemmer/*.c directly?

Thanks
Richard
Вложения

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

Предыдущее
От: Shinya Kato
Дата:
Сообщение: Re: Fix typo in func.sgml
Следующее
От: Robert Haas
Дата:
Сообщение: Re: standby promotion can create unreadable WAL