| От | Tom Lane |
|---|---|
| Тема | Re: server crash on recursive function invocation |
| Дата | |
| Msg-id | 6606.1149126933@sss.pgh.pa.us обсуждение |
| Ответ на | server crash on recursive function invocation (Ali Baba <idofyear@yahoo.com>) |
| Список | pgsql-hackers |
Ali Baba <idofyear@yahoo.com> writes:
> i was just trying recursive function invocation and got a server crash when i changed a GUC variable max_stack_depth,
to a high number.
There's a reason why that variable is a superuser-only setting: you're
supposed to have some clue what you're doing when you change it ;-)
If you need more stack space, what you generally have to do is adjust
the ulimit setting that the postmaster is started under. You can set
max_stack_depth up to a few hundred K less than the postmaster's
ulimit -s setting, but not more.
(We wouldn't even have the variable if there were a sufficiently
portable way to find out the ulimit stack depth automatically, but
there's not one that I know of.)
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера