Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b4twR-0001R4-Al for pgsql-hackers@arkaria.postgresql.org; Mon, 23 May 2016 17:46:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b4twQ-00045I-TP for pgsql-hackers@arkaria.postgresql.org; Mon, 23 May 2016 17:46:58 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b4tqD-0000so-VW for pgsql-hackers@postgresql.org; Mon, 23 May 2016 17:40:34 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b4tqB-0002Rh-I8 for pgsql-hackers@postgresql.org; Mon, 23 May 2016 17:40:32 +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 u4NHeUuu001337 for ; Mon, 23 May 2016 13:40:30 -0400 From: Tom Lane To: pgsql-hackers@postgresql.org Subject: Re: Parallel pg_dump's error reporting doesn't work worth squat In-reply-to: <24048.1463265913@sss.pgh.pa.us> References: <2458.1450894615@sss.pgh.pa.us> <24048.1463265913@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Sat, 14 May 2016 18:45:13 -0400" Date: Mon, 23 May 2016 13:40:30 -0400 Message-ID: <1336.1464025230@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 I wrote: >> ... the pg_dump process has crashed with a SIGPIPE without printing >> any message whatsoever, and without coming anywhere near finishing the >> dump. > Attached is a proposed patch for this. It reverts exit_horribly() to > what it used to be pre-9.3, ie just print the message on stderr and die. > The master now notices child failure by observing EOF on the status pipe. > While that works automatically on Unix, we have to explicitly close the > child side of the pipe on Windows (could someone check that that works?). > I also fixed the parent side to ignore SIGPIPE earlier, so that it won't > just die if it was in the midst of sending to the child. Now that we're all back from PGCon ... does anyone wish to review this? Or have an objection to treating it as a bug fix and patching all branches back to 9.3? > BTW, after having spent the afternoon staring at it, I will assert with > confidence that pg_dump/parallel.c is an embarrassment to the project. I've done a bit of work on a cosmetic cleanup patch, but don't have anything to show yet. 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