Re: Segmentation fault when max_parallel degree is very High - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Segmentation fault when max_parallel degree is very High
Date
Msg-id 6794.1462374069@sss.pgh.pa.us
Whole thread Raw
In response to Segmentation fault when max_parallel degree is very High  (Dilip Kumar <dilipbalaut@gmail.com>)
Responses Re: Segmentation fault when max_parallel degree is very High
Re: Segmentation fault when max_parallel degree is very High
List 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 by date:

Previous
From: Teodor Sigaev
Date:
Subject: Re: tsvector filter problem
Next
From: Teodor Sigaev
Date:
Subject: Re: atomic pin/unpin causing errors