Re: parallel.sgml for Gather with InitPlans

2018-05-09 Thread Robert Haas
On Tue, May 8, 2018 at 11:21 PM, Amit Kapila wrote: > On Tue, May 8, 2018 at 5:27 PM, Robert Haas wrote: >> On Mon, May 7, 2018 at 11:34 PM, Amit Kapila wrote: >>> I think we can cover InitPlan and Subplans that can be parallelized in >>> a separate section "Parallel Subplans" or some other head

Re: parallel.sgml for Gather with InitPlans

2018-05-08 Thread Amit Kapila
On Tue, May 8, 2018 at 5:27 PM, Robert Haas wrote: > On Mon, May 7, 2018 at 11:34 PM, Amit Kapila wrote: >> I think we can cover InitPlan and Subplans that can be parallelized in >> a separate section "Parallel Subplans" or some other heading. I think >> as of now we have enabled parallel subpla

Re: parallel.sgml for Gather with InitPlans

2018-05-08 Thread Robert Haas
On Mon, May 7, 2018 at 11:34 PM, Amit Kapila wrote: > Is this correct? See below example: That's not a counterexample to what I wrote. When parallelism is used, the InitPlan has to be attached to a parallel-restricted node, and it is: Gather. It's true that in the serial plan it's attached to

Re: parallel.sgml for Gather with InitPlans

2018-05-07 Thread Amit Kapila
On Mon, May 7, 2018 at 11:07 PM, Robert Haas wrote: > In the wake of commit e89a71fb449af2ef74f47be1175f99956cf21524, > parallel.sgml is no longer correct about the effect of InitPlans: > > > The following operations are always parallel restricted. > > > ... > > > Access t

parallel.sgml for Gather with InitPlans

2018-05-07 Thread Robert Haas
In the wake of commit e89a71fb449af2ef74f47be1175f99956cf21524, parallel.sgml is no longer correct about the effect of InitPlans: The following operations are always parallel restricted. ... Access to an InitPlan or correlated SubPlan. I thought about this a bit