forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2e155d9
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 parente7c183c commit2e155d9
File tree
2 files changed
+30
-1
lines changed- src/bin
- pg_basebackup
- pg_dump
2 files changed
+30
-1
lines changedLines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
931 | 931 |
| |
932 | 932 |
| |
933 | 933 |
| |
| 934 | + | |
934 | 935 |
| |
935 | 936 |
| |
| 937 | + | |
| 938 | + | |
| 939 | + | |
936 | 940 |
| |
937 | 941 |
| |
938 | 942 |
| |
| |||
942 | 946 |
| |
943 | 947 |
| |
944 | 948 |
| |
| 949 | + | |
945 | 950 |
| |
946 | 951 |
| |
| 952 | + | |
| 953 | + | |
| 954 | + | |
947 | 955 |
| |
948 | 956 |
| |
949 | 957 |
| |
| |||
1555 | 1563 |
| |
1556 | 1564 |
| |
1557 | 1565 |
| |
| 1566 | + | |
1558 | 1567 |
| |
1559 | 1568 |
| |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
1560 | 1572 |
| |
1561 | 1573 |
| |
1562 | 1574 |
| |
|
Lines changed: 18 additions & 1 deletion
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)