On 20-03-2015 PM 09:06, Amit Kapila wrote: > On Mon, Mar 16, 2015 at 12:58 PM, Amit Langote < > langote_amit...@lab.ntt.co.jp> wrote: >> Actually I meant "currently the last" or: >> >> funnel->nextqueue == funnel->nqueue - 1 >> >> So the code you quote would only take care of subset of the cases. >> > > Fixed this issue by resetting funnel->next queue to zero (as per offlist > discussion with Robert), so that it restarts from first queue in such > a case. > >> >> >> How about shm_mq_detach() called from ParallelQueryMain() right after >> exec_parallel_stmt() returns? Doesn't that do the SetLatch() that needs > to be >> done by a worker? >> > > Fixed this issue by not going for Wait incase of detached queues. >
Thanks for fixing. I no longer see the problems. Regards, Amit -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers