Commit ae3259c
committed
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 <[email protected]>
Author: Tom Lane <[email protected]>
Author: Álvaro Herrera <[email protected]>
Discussion: https://postgr.es/m/[email protected]1 parent 2c8ef93 commit ae3259c
File tree
2 files changed
+34
-0
lines changed- src/bin
- pg_basebackup
- pg_dump
2 files changed
+34
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
992 | 992 | | |
993 | 993 | | |
994 | 994 | | |
| 995 | + | |
995 | 996 | | |
996 | 997 | | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
997 | 1001 | | |
998 | 1002 | | |
999 | 1003 | | |
| |||
1002 | 1006 | | |
1003 | 1007 | | |
1004 | 1008 | | |
| 1009 | + | |
1005 | 1010 | | |
1006 | 1011 | | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
1007 | 1015 | | |
1008 | 1016 | | |
1009 | 1017 | | |
| |||
1691 | 1699 | | |
1692 | 1700 | | |
1693 | 1701 | | |
| 1702 | + | |
1694 | 1703 | | |
1695 | 1704 | | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
1696 | 1708 | | |
1697 | 1709 | | |
1698 | 1710 | | |
| |||
1743 | 1755 | | |
1744 | 1756 | | |
1745 | 1757 | | |
| 1758 | + | |
1746 | 1759 | | |
1747 | 1760 | | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
1748 | 1764 | | |
1749 | 1765 | | |
1750 | 1766 | | |
| |||
| 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 | | |
| 357 | + | |
352 | 358 | | |
353 | 359 | | |
354 | 360 | | |
| |||
481 | 487 | | |
482 | 488 | | |
483 | 489 | | |
| 490 | + | |
484 | 491 | | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
485 | 496 | | |
486 | 497 | | |
| 498 | + | |
487 | 499 | | |
488 | 500 | | |
489 | 501 | | |
| |||
511 | 523 | | |
512 | 524 | | |
513 | 525 | | |
| 526 | + | |
514 | 527 | | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
515 | 532 | | |
516 | 533 | | |
| 534 | + | |
517 | 535 | | |
518 | 536 | | |
519 | 537 | | |
| |||
0 commit comments