Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Whi7S-0007zl-7F for pgsql-committers@arkaria.postgresql.org; Tue, 06 May 2014 16:21:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Whi7R-0003gw-NV for pgsql-committers@arkaria.postgresql.org; Tue, 06 May 2014 16:21:25 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Whi7R-0003gp-3V for pgsql-committers@postgresql.org; Tue, 06 May 2014 16:21:25 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Whi7N-0003Ga-RI for pgsql-committers@postgresql.org; Tue, 06 May 2014 16:21:24 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1Whi7M-0006pK-Vm; Tue, 06 May 2014 12:21:20 -0400 Date: Tue, 6 May 2014 12:21:20 -0400 From: Bruce Momjian To: Andres Freund Cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Properly detect read and write errors in pg_dump/dumpall, and pg Message-ID: <20140506162120.GD30817@momjian.us> References: <20140506155259.GC5658@awork2.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20140506155259.GC5658@awork2.anarazel.de> User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org On Tue, May 6, 2014 at 05:52:59PM +0200, Andres Freund wrote: > On 2014-05-06 00:27:21 +0000, Bruce Momjian wrote: > > Properly detect read and write errors in pg_dump/dumpall, and pg_restore > > > > Previously some I/O errors were ignored. > > My compiler complains about this with: > > /home/andres/src/postgresql/src/bin/pg_dump/pg_backup_tar.c: In function ‘_tarReadRaw’: > /home/andres/src/postgresql/src/bin/pg_dump/pg_backup_archiver.h:48:19: warning: passing argument 1 of ‘gzeof’ from incompatible pointer type > #define GZEOF(fh) gzeof(fh) > ^ > /home/andres/src/postgresql/src/bin/pg_dump/pg_backup_tar.c:561:24: note: in expansion of macro ‘GZEOF’ > if (res != len && !GZEOF(fh)) > ^ > In file included from /home/andres/src/postgresql/src/bin/pg_dump/pg_backup_archiver.h:44:0, > from /home/andres/src/postgresql/src/bin/pg_dump/pg_backup_tar.c:32: > /usr/include/zlib.h:1475:21: note: expected ‘gzFile’ but argument is of type ‘struct FILE *’ > ZEXTERN int ZEXPORT gzeof OF((gzFile file)); > ^ > You're passing fh to GZEOF instead of th->zFH if I see that correctly. There were a few bugs, all fixed. Thanks. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + Everyone has their own god. + -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers