From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: Amit Kapila <amit.kapila16@gmail.com>
Cc: Armin Schöffmann <armin.schoeffmann@aegaeon.de>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: PATCH: pg_restore parallel-execution-deadlock issue
Date: Fri, 27 May 2016 12:06:40 -0400
Message-ID: <11796.1464365200@sss.pgh.pa.us> (raw)
In-Reply-To: <CAB7nPqQSVN4xUoaZ7N-oMCc-0j0+UQ5j4DirV-BU3TyufKCrWw@mail.gmail.com>
References: <zarafa.570306bd.3418.074bf1420d8f2ba2@root.aegaeon.de>
<CAB7nPqQbwjMG_hW-Ff3=Sn4suvBQ4gxD-8D2_GLc3hN5o9TR0A@mail.gmail.com>
<CAB7nPqQoN2OKdxRq7x=FS_7z+S=pMEHYV1QUOn5UZBxW1u_UhQ@mail.gmail.com>
<29376.1464298553@sss.pgh.pa.us>
<CAA4eK1JZtRUzL2=heRHSfmoBtxk=4XO=ySW1CK5KRrwyCLq9zA@mail.gmail.com>
<CAB7nPqQSVN4xUoaZ7N-oMCc-0j0+UQ5j4DirV-BU3TyufKCrWw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Michael Paquier <michael.paquier@gmail.com> writes:
> On Fri, May 27, 2016 at 4:07 PM, Amit Kapila <amit.kapila16@gmail.com> wrote:
>> On Fri, May 27, 2016 at 3:05 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>>> 2. Armin proposes that WaitForTerminatingWorkers needs to do CloseHandle()
>>> on the various thread handles. That sounds plausible but I don't know
>>> enough Windows programming to know if it really matters.
>>>
>>> 3. Should we replace ExitThread() with _endthreadex()? Again, it
>>> seems plausible but I'm not the person to ask.
>> I think point (2) and (3) are related because using _endthreadex won't close
>> the thread handle explicitly [1].
> Yep.
OK, I pushed something based on that. It's untested by me but the
buildfarm should tell us if I broke anything too badly.
I believe we've now dealt with all the issues originally raised by
Armin, so I've marked this patch committed in the CF app.
regards, tom lane
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
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-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, michael.paquier@gmail.com, amit.kapila16@gmail.com, armin.schoeffmann@aegaeon.de
Subject: Re: PATCH: pg_restore parallel-execution-deadlock issue
In-Reply-To: <11796.1464365200@sss.pgh.pa.us>
References: <zarafa.570306bd.3418.074bf1420d8f2ba2@root.aegaeon.de> <CAB7nPqQbwjMG_hW-Ff3=Sn4suvBQ4gxD-8D2_GLc3hN5o9TR0A@mail.gmail.com> <CAB7nPqQoN2OKdxRq7x=FS_7z+S=pMEHYV1QUOn5UZBxW1u_UhQ@mail.gmail.com> <29376.1464298553@sss.pgh.pa.us> <CAA4eK1JZtRUzL2=heRHSfmoBtxk=4XO=ySW1CK5KRrwyCLq9zA@mail.gmail.com> <CAB7nPqQSVN4xUoaZ7N-oMCc-0j0+UQ5j4DirV-BU3TyufKCrWw@mail.gmail.com> <11796.1464365200@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