Properly detect read and write errors in pg_dump/dumpall, and pg_restore
Bruce Momjian <bruce@momjian.us>
Properly detect read and write errors in pg_dump/dumpall, and pg_restore Previously some I/O errors were ignored.
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/pg_dump/compress_io.c | modified | +52 −30 |
| src/bin/pg_dump/compress_io.h | modified | +2 −2 |
| src/bin/pg_dump/pg_backup_archiver.c | modified | +38 −45 |
| src/bin/pg_dump/pg_backup_archiver.h | modified | +22 −4 |
| src/bin/pg_dump/pg_backup_custom.c | modified | +38 −50 |
| src/bin/pg_dump/pg_backup_db.c | modified | +1 −1 |
| src/bin/pg_dump/pg_backup_directory.c | modified | +24 −27 |
| src/bin/pg_dump/pg_backup.h | modified | +2 −2 |
| src/bin/pg_dump/pg_backup_null.c | modified | +10 −11 |
| src/bin/pg_dump/pg_backup_tar.c | modified | +48 −35 |