From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael.paquier@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: Thu, 26 May 2016 17:35:53 -0400
Message-ID: <29376.1464298553@sss.pgh.pa.us> (raw)
In-Reply-To: <CAB7nPqQoN2OKdxRq7x=FS_7z+S=pMEHYV1QUOn5UZBxW1u_UhQ@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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Michael Paquier <michael.paquier@gmail.com> writes:
> ea274b2 has changed the way disconnection is done is is now closing
> both the read and write pipes. So you may want to retry if things get
> better with the next round of minor releases.
Hadn't paid attention to this thread before ...
It looks like there are still a few things we need to deal with before
considering Armin's submission resolved:
1. Armin proposes using "shutdown(pipeWrite, SD_BOTH)" where the code
committed this morning (df8d2d8c4) has "closesocket(pipeWrite)".
I'd prefer to leave it that way since it's the same as for the Unix case,
and Kyotaro-san says it works for him. Is there a reason we'd need
shutdown() instead?
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.
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, armin.schoeffmann@aegaeon.de
Subject: Re: PATCH: pg_restore parallel-execution-deadlock issue
In-Reply-To: <29376.1464298553@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>
* 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