Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bAMqg-0000K5-8j for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Jun 2016 19:39:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bAMqf-0008MD-B9 for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Jun 2016 19:39:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bAMpJ-0006rc-31 for pgsql-hackers@postgresql.org; Tue, 07 Jun 2016 19:38:13 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bAMpG-0004uI-51 for pgsql-hackers@postgresql.org; Tue, 07 Jun 2016 19:38:12 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u57Jc4B2024182; Tue, 7 Jun 2016 15:38:05 -0400 From: Tom Lane To: Kyotaro HORIGUCHI cc: alvherre@2ndquadrant.com, pgsql-hackers@postgresql.org Subject: Re: Parallel pg_dump's error reporting doesn't work worth squat 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> Comments: In-reply-to Kyotaro HORIGUCHI message dated "Tue, 07 Jun 2016 12:14:31 +0900" Date: Tue, 07 Jun 2016 15:38:04 -0400 Message-ID: <24181.1465328284@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Kyotaro HORIGUCHI writes: > At Mon, 06 Jun 2016 11:12:14 -0400, Tom Lane 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