Re: pgsql: Properly detect read and write errors in pg_dump/dumpall, and pg - Mailing list pgsql-committers

From Andres Freund
Subject Re: pgsql: Properly detect read and write errors in pg_dump/dumpall, and pg
Date
Msg-id 20140506155259.GC5658@awork2.anarazel.de
Whole thread Raw
In response to pgsql: Properly detect read and write errors in pg_dump/dumpall, and pg  (Bruce Momjian <bruce@momjian.us>)
Responses Re: pgsql: Properly detect read and write errors in pg_dump/dumpall, and pg  (Bruce Momjian <bruce@momjian.us>)
List pgsql-committers
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
incompatiblepointer 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.

Greetings,

Andres Freund

--
 Andres Freund                       http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


pgsql-committers by date:

Previous
From: Bruce Momjian
Date:
Subject: pgsql: Remove tabs after spaces in C comments
Next
From: Bruce Momjian
Date:
Subject: pgsql: pgindent run for 9.4