pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Amit Kapila <amit.kapila16@gmail.com>
Cc: pgsql-committers <pgsql-committers@postgresql.org>
Subject: Re: pgsql: Notify bgworker registrant after freeing worker slot.
Date: Mon, 06 Mar 2017 13:44:36 -0500
Message-ID: <21855.1488825876@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+TgmoYWXm0BPxMcFa4c8rhR0eGOp_wJgXuxxFew1c823ycp-g@mail.gmail.com>
References: <E1cjeLj-0006kS-VO@gemulon.postgresql.org>
	<CAA4eK1KL02hUNpq8tcEvSoo-=37CVjQjaQX1k0xvNxwOcME6Bw@mail.gmail.com>
	<CA+TgmoYWXm0BPxMcFa4c8rhR0eGOp_wJgXuxxFew1c823ycp-g@mail.gmail.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Robert Haas <robertmhaas@gmail.com> writes:
> On Mon, Mar 6, 2017 at 8:21 AM, Amit Kapila <amit.kapila16@gmail.com> wrote:
>> 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.

> Thanks for the report and patch.  Committed.

Hmm, maybe this also explains skink's recent failure in the
select_parallel test.  I was going to go try to duplicate that, but
now maybe I'll just wait to see if its next run is green.

			regards, tom lane


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



view thread (4+ messages)

Message-ID: <21855.1488825876@sss.pgh.pa.us>
Permalink:  ../21855.1488825876@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/21855.1488825876@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, robertmhaas@gmail.com, amit.kapila16@gmail.com
  Subject: Re: pgsql: Notify bgworker registrant after freeing worker slot.
  In-Reply-To: <21855.1488825876@sss.pgh.pa.us>
  References: <E1cjeLj-0006kS-VO@gemulon.postgresql.org> <CAA4eK1KL02hUNpq8tcEvSoo-=37CVjQjaQX1k0xvNxwOcME6Bw@mail.gmail.com> <CA+TgmoYWXm0BPxMcFa4c8rhR0eGOp_wJgXuxxFew1c823ycp-g@mail.gmail.com> <21855.1488825876@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox