forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit411febd
committed
Ensure write failure reports no-disk-space
A few places calling fwrite and gzwrite were not setting errno to ENOSPCwhen reporting errors, as is customary; this led to some failures beingreported as"could not write file: Success"which makes us look silly. Make a few of these places in pg_dump andpg_basebackup use our customary pattern.Backpatch-to: 9.5Author: 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.com1 parent91e27a3 commit411febd
File tree
2 files changed
+30
-1
lines changed- src/bin
- pg_basebackup
- pg_dump
2 files changed
+30
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
902 | 902 | | |
903 | 903 | | |
904 | 904 | | |
| 905 | + | |
905 | 906 | | |
906 | 907 | | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
907 | 911 | | |
908 | 912 | | |
909 | 913 | | |
| |||
913 | 917 | | |
914 | 918 | | |
915 | 919 | | |
| 920 | + | |
916 | 921 | | |
917 | 922 | | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
918 | 926 | | |
919 | 927 | | |
920 | 928 | | |
| |||
1526 | 1534 | | |
1527 | 1535 | | |
1528 | 1536 | | |
| 1537 | + | |
1529 | 1538 | | |
1530 | 1539 | | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
1531 | 1543 | | |
1532 | 1544 | | |
1533 | 1545 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
| 354 | + | |
354 | 355 | | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
355 | 360 | | |
356 | 361 | | |
357 | | - | |
| 362 | + | |
358 | 363 | | |
359 | 364 | | |
360 | 365 | | |
| |||
491 | 496 | | |
492 | 497 | | |
493 | 498 | | |
| 499 | + | |
494 | 500 | | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
495 | 505 | | |
496 | 506 | | |
| 507 | + | |
497 | 508 | | |
498 | 509 | | |
499 | 510 | | |
| |||
521 | 532 | | |
522 | 533 | | |
523 | 534 | | |
| 535 | + | |
524 | 536 | | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
525 | 541 | | |
526 | 542 | | |
| 543 | + | |
527 | 544 | | |
528 | 545 | | |
529 | 546 | | |
| |||
0 commit comments
Comments
(0)