pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Ensure write failure reports no-disk-space 7+ messages / 1 participants [nested] [flat]
* pgsql: Ensure write failure reports no-disk-space @ 2020-06-19 21:26 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 7+ messages in thread From: Alvaro Herrera @ 2020-06-19 21:26 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/ae3259c55067c926d25c745d70265fca15c2d26b Modified Files -------------- src/bin/pg_basebackup/pg_basebackup.c | 16 ++++++++++++++++ src/bin/pg_dump/pg_backup_directory.c | 18 ++++++++++++++++++ 2 files changed, 34 insertions(+) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Ensure write failure reports no-disk-space @ 2020-06-19 21:26 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 7+ messages in thread From: Alvaro Herrera @ 2020-06-19 21:26 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL_13_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/e74559c9763049ff4d3edd26817bad58c13113a1 Modified Files -------------- src/bin/pg_basebackup/pg_basebackup.c | 16 ++++++++++++++++ src/bin/pg_dump/pg_backup_directory.c | 18 ++++++++++++++++++ 2 files changed, 34 insertions(+) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Ensure write failure reports no-disk-space @ 2020-06-19 21:26 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 7+ messages in thread From: Alvaro Herrera @ 2020-06-19 21:26 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/5b52008a64414cd161db11f4c0d52fc0d2ee304a Modified Files -------------- src/bin/pg_basebackup/pg_basebackup.c | 12 ++++++++++++ src/bin/pg_dump/pg_backup_directory.c | 19 ++++++++++++++++++- 2 files changed, 30 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Ensure write failure reports no-disk-space @ 2020-06-19 21:26 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 7+ messages in thread From: Alvaro Herrera @ 2020-06-19 21:26 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/2e155d90d1b867f7b5bf9616236386eb1e0f40ff Modified Files -------------- src/bin/pg_basebackup/pg_basebackup.c | 12 ++++++++++++ src/bin/pg_dump/pg_backup_directory.c | 19 ++++++++++++++++++- 2 files changed, 30 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Ensure write failure reports no-disk-space @ 2020-06-19 21:26 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 7+ messages in thread From: Alvaro Herrera @ 2020-06-19 21:26 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/411febd53e99cfb59db28e8da06c36abf366325a Modified Files -------------- src/bin/pg_basebackup/pg_basebackup.c | 12 ++++++++++++ src/bin/pg_dump/pg_backup_directory.c | 19 ++++++++++++++++++- 2 files changed, 30 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Ensure write failure reports no-disk-space @ 2020-06-19 21:26 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 7+ messages in thread From: Alvaro Herrera @ 2020-06-19 21:26 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/83762d0a928d5ac97b6124d4da70a53f1a98fc33 Modified Files -------------- src/bin/pg_basebackup/pg_basebackup.c | 12 ++++++++++++ src/bin/pg_dump/pg_backup_directory.c | 19 ++++++++++++++++++- 2 files changed, 30 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Ensure write failure reports no-disk-space @ 2020-06-19 21:26 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 7+ messages in thread From: Alvaro Herrera @ 2020-06-19 21:26 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/bbbce94dc262fa255ec53a9949f899369afdb4e7 Modified Files -------------- src/bin/pg_basebackup/pg_basebackup.c | 12 ++++++++++++ src/bin/pg_dump/pg_backup_directory.c | 19 ++++++++++++++++++- 2 files changed, 30 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2020-06-19 21:26 UTC | newest] Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2020-06-19 21:26 pgsql: Ensure write failure reports no-disk-space Alvaro Herrera <alvherre@alvh.no-ip.org> 2020-06-19 21:26 pgsql: Ensure write failure reports no-disk-space Alvaro Herrera <alvherre@alvh.no-ip.org> 2020-06-19 21:26 pgsql: Ensure write failure reports no-disk-space Alvaro Herrera <alvherre@alvh.no-ip.org> 2020-06-19 21:26 pgsql: Ensure write failure reports no-disk-space Alvaro Herrera <alvherre@alvh.no-ip.org> 2020-06-19 21:26 pgsql: Ensure write failure reports no-disk-space Alvaro Herrera <alvherre@alvh.no-ip.org> 2020-06-19 21:26 pgsql: Ensure write failure reports no-disk-space Alvaro Herrera <alvherre@alvh.no-ip.org> 2020-06-19 21:26 pgsql: Ensure write failure reports no-disk-space Alvaro Herrera <alvherre@alvh.no-ip.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox