Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aNjhm-0003W7-CS for pgsql-bugs@arkaria.postgresql.org; Mon, 25 Jan 2016 16:09:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aNjhl-0007r9-TI for pgsql-bugs@arkaria.postgresql.org; Mon, 25 Jan 2016 16:09:25 +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) (envelope-from ) id 1aNjh9-00078u-8X for pgsql-bugs@postgresql.org; Mon, 25 Jan 2016 16:08:47 +0000 Received: from out.smtp-auth.no-ip.com ([8.23.224.60]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aNjh6-0004Ks-6u for pgsql-bugs@postgresql.org; Mon, 25 Jan 2016 16:08:45 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [186.37.71.95]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 1390A4005C9; Mon, 25 Jan 2016 08:08:43 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 1A1DD9F1; Mon, 25 Jan 2016 13:08:40 -0300 (CLT) Date: Mon, 25 Jan 2016 13:08:40 -0300 From: Alvaro Herrera To: kunschikov@gmail.com Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #13888: pg_dump write error Message-ID: <20160125160840.GA510163@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20160125143008.2539.2878@wrigleys.postgresql.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -1.1 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org kunschikov@gmail.com wrote: > Database backup in heavy loaded environment sometimes fails with the > following error: > > pg_dump: [parallel archiver] could not write to output file: Success > > Subsequent rerun of the pg_dump solves that problem. > More elegant and reliable solution: WRITE_ERROR_EXIT macro replacement in > ahwrite() function at src/bin/pg_dump/pg_backup_archiver.c source file. > There can be some error checking instead of this macro. Yeah, I noticed this and similar lacks of error checks in pg_dump in code review, which I didn't get around to patching. Care to submit a patch? -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs