From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Cc: alvherre@2ndquadrant.com
Cc: pgsql-hackers@postgresql.org
Subject: Re: Parallel pg_dump's error reporting doesn't work worth squat
Date: Tue, 07 Jun 2016 15:38:04 -0400
Message-ID: <24181.1465328284@sss.pgh.pa.us> (raw)
In-Reply-To: <20160607.121431.51138693.horiguchi.kyotaro@lab.ntt.co.jp>
References: <11515.1464961470@sss.pgh.pa.us>
<20160606.190721.223349768.horiguchi.kyotaro@lab.ntt.co.jp>
<17504.1465225934@sss.pgh.pa.us>
<20160607.121431.51138693.horiguchi.kyotaro@lab.ntt.co.jp>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp> writes:
> At Mon, 06 Jun 2016 11:12:14 -0400, Tom Lane <tgl@sss.pgh.pa.us> wrote in <17504.1465225934@sss.pgh.pa.us>
>> Uh, what? PQcancel is very carefully coded so that it's safe to use
>> in a signal handler. If it's doing mallocs someplace, that would be
>> surprising.
> PQcancel is disigned to run in a signal handler on *Linux*, but
> the discussion here is that the equivalent of send/recv and the
> similars on Windows can be blocked by the TerminateThread'ed
> thread via heap lock.
What's your evidence for that? I'd expect those to be kernel calls,
or whatever the equivalent concept is on Windows. If they are not,
and in particular if they do malloc's, I think we have got problems
in many other contexts besides parallel dump.
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, horiguchi.kyotaro@lab.ntt.co.jp, alvherre@2ndquadrant.com
Subject: Re: Parallel pg_dump's error reporting doesn't work worth squat
In-Reply-To: <24181.1465328284@sss.pgh.pa.us>
References: <11515.1464961470@sss.pgh.pa.us> <20160606.190721.223349768.horiguchi.kyotaro@lab.ntt.co.jp> <17504.1465225934@sss.pgh.pa.us> <20160607.121431.51138693.horiguchi.kyotaro@lab.ntt.co.jp> <24181.1465328284@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