Re: [COMMITTERS] pgsql: Notify bgworker registrant after freeingworker slot. - Mailing list pgsql-committers

From Amit Kapila
Subject Re: [COMMITTERS] pgsql: Notify bgworker registrant after freeingworker slot.
Date
Msg-id CAA4eK1KL02hUNpq8tcEvSoo-=37CVjQjaQX1k0xvNxwOcME6Bw@mail.gmail.com
Whole thread Raw
In response to [COMMITTERS] pgsql: Notify bgworker registrant after freeing worker slot.  (Robert Haas <rhaas@postgresql.org>)
Responses Re: [COMMITTERS] pgsql: Notify bgworker registrant after freeingworker slot.
List pgsql-committers
On Fri, Mar 3, 2017 at 9:27 AM, Robert Haas <rhaas@postgresql.org> wrote:
> Notify bgworker registrant after freeing worker slot.
>

After this commit, I am seeing parallel queires being stucked on my
windows machine.  I think the notify pid is stale in
ReportBackgroundWorkerExit() as we are freeing the same in
ForgetBackgroundWorker().  Attached patch fixes the problem for me.

Ashutosh Sharma has independently reported (offlist) this problem to me.

--
With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com

Attachment

pgsql-committers by date:

Previous
From: Masahiko Sawada
Date:
Subject: Re: [COMMITTERS] pgsql: Allow vacuums to report oldestxmin
Next
From: Peter Eisentraut
Date:
Subject: [COMMITTERS] pgsql: Reorder the asynchronous libpq calls for replication connection