Amit Kapila <amit.kapila16@gmail.com> writes:
> On Tue, Aug 29, 2017 at 10:05 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> ! /* Make sure any existing workers are gracefully shut down */
> ExecShutdownGatherWorkers(node);
> The above call doesn't ensure the shutdown. It just ensures that we
> receive all messages from parallel workers. Basically, it doesn't
> call WaitForParallelWorkersToExit.
Perhaps you should submit a patch to rename ExecShutdownGatherWorkers
to something less misleading, then. But the previous comment there
was even more wrong :-(
regards, tom lane