| От | Tom Lane |
|---|---|
| Тема | Checking max_stack_depth automatically |
| Дата | |
| Msg-id | 20339.1160240938@sss.pgh.pa.us обсуждение исходный текст |
| Ответы |
Re: Checking max_stack_depth automatically
|
| Список | pgsql-hackers |
I have just realized that getrlimit(RLIMIT_STACK) is a pretty widely available syscall --- it's specified by the Single Unix Spec and the man pages claim it works on all the platforms I have handy to check. I propose that we make use of this call where available to prevent people from setting max_stack_depth larger than, say, the current stack rlimit less half a megabyte. This will prevent pilot error such as here: http://archives.postgresql.org/pgsql-bugs/2006-10/msg00053.php It'd be even nicer to not have a max_stack_depth GUC at all, but it's probably untenable to assume that getrlimit is available on every platform. Thoughts? regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера