postgresql/src/bin/pg_basebackup
Alvaro Herrera e74559c976
Ensure write failure reports no-disk-space
A few places calling fwrite and gzwrite were not setting errno to ENOSPC
when reporting errors, as is customary; this led to some failures being
reported as
"could not write file: Success"
which makes us look silly.  Make a few of these places in pg_dump and
pg_basebackup use our customary pattern.

Backpatch-to: 9.5
Author: Justin Pryzby <pryzby@telsasoft.com>
Author: Tom Lane <tgl@sss.pgh.pa.us>
Author: Álvaro Herrera <alvherre@alvh.no-ip.org>
Discussion: https://postgr.es/m/20200611153753.GU14879@telsasoft.com
2020-06-19 16:46:07 -04:00
..
po Translation updates 2020-05-18 12:49:30 +02:00
t Initial pgindent and pgperltidy run for v13. 2020-05-14 13:06:50 -04:00
.gitignore Rename user-facing tools with "xlog" in the name to say "wal". 2017-02-09 16:23:46 -05:00
Makefile Update copyrights for 2020 2020-01-01 12:21:45 -05:00
nls.mk Add missing source files to nls.mk 2020-06-06 19:56:21 +02:00
pg_basebackup.c Ensure write failure reports no-disk-space 2020-06-19 16:46:07 -04:00
pg_receivewal.c Add PostgreSQL home page to --help output 2020-02-28 13:12:21 +01:00
pg_recvlogical.c Fix pg_recvlogical avoidance of superfluous Standby Status Update. 2020-05-13 20:42:09 -07:00
receivelog.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
receivelog.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
streamutil.c Fix minor memory leak in pg_basebackup and pg_receivewal 2020-04-17 10:45:08 +09:00
streamutil.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
walmethods.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
walmethods.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00