Re: Segmentation fault when max_parallel degree is very High

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Segmentation fault when max_parallel degree is very High
Дата
Msg-id 6794.1462374069@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Segmentation fault when max_parallel degree is very High  (Dilip Kumar <dilipbalaut@gmail.com>)
Ответы Re: Segmentation fault when max_parallel degree is very High  (Amit Kapila <amit.kapila16@gmail.com>)
Re: Segmentation fault when max_parallel degree is very High  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Dilip Kumar <dilipbalaut@gmail.com> writes:
> When parallel degree is set to very high say 70000, there is a segmentation
> fault in parallel code,
> and that is because type casting is missing in the code..

I'd say the cause is not having a sane range limit on the GUC.

> or corrupt some memory. Need to typecast
> *i * PARALLEL_TUPLE_QUEUE_SIZE  --> (Size)i * **PARALLEL_TUPLE_QUEUE_SIZE *and
> this will fix

That might "fix" it on 64-bit machines, but not 32-bit.
        regards, tom lane



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

Предыдущее
От: Teodor Sigaev
Дата:
Сообщение: Re: tsvector filter problem
Следующее
От: Teodor Sigaev
Дата:
Сообщение: Re: atomic pin/unpin causing errors