Index: src/bin/pg_dump/pg_backup_archiver.c =================================================================== RCS file: /cvsroot/pgsql-server/src/bin/pg_dump/pg_backup_archiver.c,v retrieving revision 1.78 diff -c -c -r1.78 pg_backup_archiver.c *** src/bin/pg_dump/pg_backup_archiver.c 3 Oct 2003 20:10:59 -0000 1.78 --- src/bin/pg_dump/pg_backup_archiver.c 8 Oct 2003 04:43:39 -0000 *************** *** 1232,1246 **** * connected then send it to the DB. */ if (RestoringToDB(AH)) ! return ExecuteSqlCommandBuf(AH, (void *) ptr, size * nmemb); /* Always 1, currently */ ! else { res = fwrite((void *) ptr, size, nmemb, AH->OF); if (res != nmemb) die_horribly(AH, modulename, "could not write to output file (%lu != %lu)\n", (unsigned long) res, (unsigned long) nmemb); - return res; } } } --- 1232,1247 ---- * connected then send it to the DB. */ if (RestoringToDB(AH)) ! res = ExecuteSqlCommandBuf(AH, (void *) ptr, size * nmemb); /* Always 1, currently */ ! ! if (!RestoringToDB(AH) || AH->public.verbose) { res = fwrite((void *) ptr, size, nmemb, AH->OF); if (res != nmemb) die_horribly(AH, modulename, "could not write to output file (%lu != %lu)\n", (unsigned long) res, (unsigned long) nmemb); } + return res; } }