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: Fri, 03 Jun 2016 09:44:30 -0400
Message-ID: <11515.1464961470@sss.pgh.pa.us> (raw)
In-Reply-To: <20160603.173055.230675706.horiguchi.kyotaro@lab.ntt.co.jp>
References: <13183.1464880782@sss.pgh.pa.us>
<20160602161711.GA239156@alvherre.pgsql>
<20160603.173055.230675706.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:
> For sure, any of the "dangers" of TerminateThread don't matter
> for this case.
I think that this one:
>> If the target thread is allocating memory from the heap, the heap
>> lock will not be released.
is potentially a hazard, which is why I made sure to use write_stderr
later on in the console interrupt handler. Your original suggestion
to use write_msg would end up going through fprintf, which might well
use malloc internally. (It's possible that Windows' version of write()
could too, I suppose, but that's probably as low-level as we are
going to get.)
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: <11515.1464961470@sss.pgh.pa.us>
References: <13183.1464880782@sss.pgh.pa.us> <20160602161711.GA239156@alvherre.pgsql> <20160603.173055.230675706.horiguchi.kyotaro@lab.ntt.co.jp> <11515.1464961470@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