Re: [HACKERS] parallel index(-only) scan breaks when run without parallelism

2017-03-07 Thread Amit Kapila
On Wed, Mar 8, 2017 at 12:27 AM, Robert Haas wrote: > Amit, Rafia, > > nodeIndexscan.c, unlike nodeSeqscan.c, thinks that a parallel-aware > scan will always be executed in parallel mode. But that's not true: > an Execute message with a non-zero row count could cause us to

[HACKERS] parallel index(-only) scan breaks when run without parallelism

2017-03-07 Thread Robert Haas
Amit, Rafia, nodeIndexscan.c, unlike nodeSeqscan.c, thinks that a parallel-aware scan will always be executed in parallel mode. But that's not true: an Execute message with a non-zero row count could cause us to abandon planned parallelism and execute the plan serially. I believe this would