- Notifications
You must be signed in to change notification settings - Fork5
Commitc5b5168
committed
pg_rewind: fsync target data directory.
Previously pg_rewind did not fsync any files. That's problematic, giventhat the target directory is modified. If the database was startedafterwards,2ce439f luckily already caused the data directory to besynced to disk at postmaster startup; reducing the scope of the problem.To fix, use initdb -S, at the end of the pg_rewind run. It doesn't seemworthwhile to duplicate the code into pg_rewind, and initdb -S isalready used that way by pg_upgrade.Reported-By: Andres FreundAuthor: Michael Paquier, somewhat edited by meDiscussion: 20160310034352.iuqgvpmg5qmnxtkz@alap3.anarazel.de CAB7nPqSytVG1o4S3S2pA1O=692ekurJ+fckW2PywEG3sNw54Ow@mail.gmail.comBackpatch: 9.5, where pg_rewind was introduced1 parentfa5098d commitc5b5168
2 files changed
+57
-1
lines changedLines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
79 | 79 |
| |
80 | 80 |
| |
81 | 81 |
| |
82 |
| - | |
83 | 82 |
| |
84 | 83 |
| |
85 | 84 |
| |
|
Lines changed: 57 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
36 | 36 |
| |
37 | 37 |
| |
38 | 38 |
| |
| 39 | + | |
39 | 40 |
| |
40 | 41 |
| |
41 | 42 |
| |
| |||
343 | 344 |
| |
344 | 345 |
| |
345 | 346 |
| |
| 347 | + | |
| 348 | + | |
| 349 | + | |
346 | 350 |
| |
347 | 351 |
| |
348 | 352 |
| |
| |||
572 | 576 |
| |
573 | 577 |
| |
574 | 578 |
| |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + |
0 commit comments
Comments
(0)