forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit57b5a96
committed
Minimal fix for unterminated tar archive problem.
Commit23a1c65 improvedpg_basebackup's ability to parse tar archives, but also arrangedto parse them only when we need to make some modification to thecontents of the archive. That's a problem, because the serverdoesn't actually terminate tar archives. When the new parsinglogic was engaged, pg_basebackup would properly terminate thetar file, but when it was skipped, pg_basebackup would just writewhatever it got from the server, meaning that the terminatorwas missing.Most versions of tar are willing to overlook the missing terminator, butthe AIX buildfarm animals were not. Fix by inventing a new kind ofbbstreamer that just blindly adds a terminator, and using it whenever wedon't parse the tar archive.Discussion:http://postgr.es/m/CA+TgmoZbNzsWwM4BE5Jb_qHncY817DYZwGf+2-7hkMQ27ZwsMQ@mail.gmail.com1 parentb0cf544 commit57b5a96
File tree
3 files changed
+78
-1
lines changed- src/bin/pg_basebackup
3 files changed
+78
-1
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
206 | 206 |
| |
207 | 207 |
| |
208 | 208 |
| |
| 209 | + | |
209 | 210 |
| |
210 | 211 |
| |
211 | 212 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
59 | 59 |
| |
60 | 60 |
| |
61 | 61 |
| |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
62 | 75 |
| |
63 | 76 |
| |
64 | 77 |
| |
| |||
442 | 455 |
| |
443 | 456 |
| |
444 | 457 |
| |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1073 | 1073 |
| |
1074 | 1074 |
| |
1075 | 1075 |
| |
1076 |
| - | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
1077 | 1079 |
| |
1078 | 1080 |
| |
1079 | 1081 |
| |
| 1082 | + | |
| 1083 | + | |
1080 | 1084 |
| |
1081 | 1085 |
| |
1082 | 1086 |
| |
|
0 commit comments
Comments
(0)