Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Whhg0-0006sA-Tf for pgsql-committers@arkaria.postgresql.org; Tue, 06 May 2014 15:53:05 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Whhg0-0001Lm-Dn for pgsql-committers@arkaria.postgresql.org; Tue, 06 May 2014 15:53:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Whhfz-0001Lb-QB for pgsql-committers@postgresql.org; Tue, 06 May 2014 15:53:03 +0000 Received: from mout.kundenserver.de ([212.227.126.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Whhfw-00057g-Pk for pgsql-committers@postgresql.org; Tue, 06 May 2014 15:53:03 +0000 Received: from anarazel.de (p5DDC5BC2.dip0.t-ipconnect.de [93.220.91.194]) by mrelayeu.kundenserver.de (node=mreue006) with ESMTP (Nemesis) id 0MHedk-1Wgbk804Wy-003NR4; Tue, 06 May 2014 17:53:00 +0200 Received: by anarazel.de (Postfix, from userid 1000) id 53B411003F4; Tue, 6 May 2014 17:52:59 +0200 (CEST) Date: Tue, 6 May 2014 17:52:59 +0200 From: Andres Freund To: Bruce Momjian Cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Properly detect read and write errors in pg_dump/dumpall, and pg Message-ID: <20140506155259.GC5658@awork2.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Content-Transfer-Encoding: quoted-printable X-Provags-ID: V02:K0:s7XxmH7a15MbolOMZLRBWFCywdGQXwDzyZMxcd6+88T FT+RQ4Tkb+h1AzATST4wmLoVeuiI/tkugjhAH13KFnVknoVDBp +BL7QaZeubYQDY73CLK1iEBsj7h9KuNc+YrIWOti+rLhECYeiW So1BTY7S94UUB3Ke1tna3th2Ds4GBCrtlYM//4MpqLlPLnqHO1 tbYl5GGlfny+sODxmv18DpjRet/aSdd/KuxC47xFQoMmUsMwgK lW6tfxE1aNLMegdhgKRAUtK+oAb0HVTUsKGaa9fPgYjDUm1h3d HlhnnTAY5coob9c+fexQ5QMLbvvbVSMC/S7oX1hqaizzvj5uHa s6t3e4V4dQ7OtMed7CrKW9O82Zo+jyVlHe+I4Z1dG X-Pg-Spam-Score: -1.9 (-) 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 2014-05-06 00:27:21 +0000, Bruce Momjian wrote: > Properly detect read and write errors in pg_dump/dumpall, and pg_restore >=20 > 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 = =E2=80=98_tarReadRaw=E2=80=99: /home/andres/src/postgresql/src/bin/pg_dump/pg_backup_archiver.h:48:19: war= ning: passing argument 1 of =E2=80=98gzeof=E2=80=99 from incompatible point= er type #define GZEOF(fh) gzeof(fh) ^ /home/andres/src/postgresql/src/bin/pg_dump/pg_backup_tar.c:561:24: note: i= n expansion of macro =E2=80=98GZEOF=E2=80=99 if (res !=3D 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 =E2=80=98gzFile=E2=80=99 but ar= gument is of type =E2=80=98struct FILE *=E2=80=99 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 --=20 Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services --=20 Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers