- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit4f3924d
committed
Keep CommitTs module in sync in standby and master
We allow this module to be turned off on restarts, so a restart timecheck is enough to activate or deactivate the module; however, if thereis a standby replaying WAL emitted from a master which is restarted, butthe standby isn't, the state in the standby becomes inconsistent and caneasily be crashed.Fix by activating and deactivating the module during WAL replay onparameter change as well as on system start.Problem reported by Fujii Masao inhttp://www.postgresql.org/message-id/CAHGQGwFhJ3CnHo1CELEfay18yg_RA-XZT-7D8NuWUoYSZ90r4Q@mail.gmail.comAuthor: Petr Jelínek1 parente3f1c24 commit4f3924d
File tree
4 files changed
+99
-24
lines changed- src
- backend
- access/transam
- commands
- include/access
4 files changed
+99
-24
lines changedLines changed: 60 additions & 21 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
557 | 557 |
| |
558 | 558 |
| |
559 | 559 |
| |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
560 | 566 |
| |
561 | 567 |
| |
562 | 568 |
| |
| |||
569 | 575 |
| |
570 | 576 |
| |
571 | 577 |
| |
572 |
| - | |
573 |
| - | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
574 | 597 |
| |
575 | 598 |
| |
576 | 599 |
| |
577 | 600 |
| |
578 | 601 |
| |
579 | 602 |
| |
580 | 603 |
| |
581 |
| - | |
| 604 | + | |
582 | 605 |
| |
583 | 606 |
| |
584 | 607 |
| |
| |||
590 | 613 |
| |
591 | 614 |
| |
592 | 615 |
| |
593 |
| - | |
594 |
| - | |
595 |
| - | |
596 |
| - | |
597 |
| - | |
598 |
| - | |
599 |
| - | |
600 |
| - | |
601 |
| - | |
602 |
| - | |
603 |
| - | |
604 |
| - | |
605 |
| - | |
606 |
| - | |
607 |
| - | |
608 |
| - | |
609 | 616 |
| |
610 | 617 |
| |
611 | 618 |
| |
| |||
640 | 647 |
| |
641 | 648 |
| |
642 | 649 |
| |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
643 | 681 |
| |
644 | 682 |
| |
645 | 683 |
| |
| |||
705 | 743 |
| |
706 | 744 |
| |
707 | 745 |
| |
708 |
| - | |
| 746 | + | |
709 | 747 |
| |
710 | 748 |
| |
711 | 749 |
| |
| |||
721 | 759 |
| |
722 | 760 |
| |
723 | 761 |
| |
724 |
| - | |
| 762 | + | |
| 763 | + | |
725 | 764 |
| |
726 | 765 |
| |
727 | 766 |
| |
|
Lines changed: 35 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5688 | 5688 |
| |
5689 | 5689 |
| |
5690 | 5690 |
| |
| 5691 | + | |
| 5692 | + | |
| 5693 | + | |
| 5694 | + | |
| 5695 | + | |
| 5696 | + | |
| 5697 | + | |
| 5698 | + | |
| 5699 | + | |
| 5700 | + | |
| 5701 | + | |
| 5702 | + | |
| 5703 | + | |
5691 | 5704 |
| |
5692 | 5705 |
| |
5693 | 5706 |
| |
| |||
5730 | 5743 |
| |
5731 | 5744 |
| |
5732 | 5745 |
| |
| 5746 | + | |
| 5747 | + | |
| 5748 | + | |
5733 | 5749 |
| |
5734 | 5750 |
| |
5735 | 5751 |
| |
| |||
9118 | 9134 |
| |
9119 | 9135 |
| |
9120 | 9136 |
| |
9121 |
| - | |
9122 | 9137 |
| |
9123 | 9138 |
| |
9124 | 9139 |
| |
| |||
9136 | 9151 |
| |
9137 | 9152 |
| |
9138 | 9153 |
| |
| 9154 | + | |
| 9155 | + | |
| 9156 | + | |
| 9157 | + | |
| 9158 | + | |
| 9159 | + | |
| 9160 | + | |
| 9161 | + | |
| 9162 | + | |
| 9163 | + | |
| 9164 | + | |
| 9165 | + | |
| 9166 | + | |
| 9167 | + | |
| 9168 | + | |
| 9169 | + | |
| 9170 | + | |
| 9171 | + | |
| 9172 | + | |
9139 | 9173 |
| |
9140 | 9174 |
| |
9141 | 9175 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1087 | 1087 |
| |
1088 | 1088 |
| |
1089 | 1089 |
| |
1090 |
| - | |
| 1090 | + | |
1091 | 1091 |
| |
1092 | 1092 |
| |
1093 | 1093 |
| |
|
Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
| 42 | + | |
| 43 | + | |
42 | 44 |
| |
43 | 45 |
| |
44 | 46 |
| |
45 | 47 |
| |
46 |
| - | |
| 48 | + | |
47 | 49 |
| |
48 | 50 |
| |
49 | 51 |
| |
|
0 commit comments
Comments
(0)