On Fri, Oct 9, 2020 at 7:32 PM Greg Nancarrow <gregn4...@gmail.com> wrote: > > On Fri, Oct 9, 2020 at 11:57 PM Amit Kapila <amit.kapil...@gmail.com> wrote: > > > > > > > > Sure but in that case 'top_plan->parallel_safe' should be false and it > > > should stick Gather node atop Insert node. > > > > > > > /should/should not. > > > > OK, for the minimal patch, just allowing INSERT with parallel SELECT, > you're right, neither of those additional "commandType == CMD_SELECT" > checks are needed, so I'll remove them. >
Okay, that makes sense. > (In the main patch, I think > the first check can be removed, once the XID handling is fixed; the > second check is definitely needed though). > Okay, then move that check but please do add some comments to state the reason. -- With Regards, Amit Kapila.