forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5b52008
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 parentb22ca76 commit5b52008
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 | |
|---|---|---|---|
| |||
892 | 892 | | |
893 | 893 | | |
894 | 894 | | |
| 895 | + | |
895 | 896 | | |
896 | 897 | | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
897 | 901 | | |
898 | 902 | | |
899 | 903 | | |
| |||
902 | 906 | | |
903 | 907 | | |
904 | 908 | | |
| 909 | + | |
905 | 910 | | |
906 | 911 | | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
907 | 915 | | |
908 | 916 | | |
909 | 917 | | |
| |||
1596 | 1604 | | |
1597 | 1605 | | |
1598 | 1606 | | |
| 1607 | + | |
1599 | 1608 | | |
1600 | 1609 | | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
1601 | 1613 | | |
1602 | 1614 | | |
1603 | 1615 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
| 349 | + | |
349 | 350 | | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
350 | 355 | | |
351 | 356 | | |
352 | | - | |
| 357 | + | |
353 | 358 | | |
354 | 359 | | |
355 | 360 | | |
| |||
484 | 489 | | |
485 | 490 | | |
486 | 491 | | |
| 492 | + | |
487 | 493 | | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
488 | 498 | | |
489 | 499 | | |
| 500 | + | |
490 | 501 | | |
491 | 502 | | |
492 | 503 | | |
| |||
514 | 525 | | |
515 | 526 | | |
516 | 527 | | |
| 528 | + | |
517 | 529 | | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
518 | 534 | | |
519 | 535 | | |
| 536 | + | |
520 | 537 | | |
521 | 538 | | |
522 | 539 | | |
| |||
0 commit comments
Comments
(0)