I wrote: > Yugo NAGATA <nag...@sraoss.co.jp> writes: >> I guess planstate is removed due to the redundancy that this is included >> in queryDesc. If so, I think we can also remove use_parallel_mode for the >> same reason.
> Certainly there's a bit of aesthetic judgment involved here. After thinking awhile longer, I'm coming around to the idea that you're right and it'd be better to get rid of ExecutePlan's use_parallel_mode argument. We clearly have to pass down count and direction, and it's sensible to pass down operation, sendTuples, and dest because ExecutorRun is involved with those to perform dest-receiver startup and shutdown. But ExecutorRun has no real concern with the parallelism decision, so it seems better to unify that logic in one place. I'll make that change before pushing. regards, tom lane