forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0ba5181

Amit Kapila
Skip empty transaction stream in test_decoding.
We were decoding empty transactions via streaming APIs added in commit45fdc97 even when the user used the option 'skip-empty-xacts'. The APIsmakes no effort to skip empty xacts under the assumption that we willnever try to stream such transactions. However, that is not true becausewe can pick to stream a transaction that has change messages forREORDER_BUFFER_CHANGE_INTERNAL_SNAPSHOT and we don't send such messages todownstream rather they are just to update the internal state. So, we needto skip such xacts when plugin uses the option 'skip-empty-xacts'.Diagnosed-By: Amit KapilaAuthor: Dilip KumarReviewed-by: Amit KapilaDiscussion:https://postgr.es/m/CAA4eK1+OqgFNZkf7=ETe_y5ntjgDk3T0wcdkd4Sot_u1hySGfw@mail.gmail.com1 parent9f1cf97 commit0ba5181
File tree
5 files changed
+95
-23
lines changed- contrib/test_decoding
- expected
- specs
5 files changed
+95
-23
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
|
Lines changed: 19 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + |
Lines changed: 1 addition & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
32 |
| - | |
33 | 32 |
| |
34 |
| - | |
35 |
| - | |
36 | 33 |
| |
37 | 34 |
| |
38 | 35 |
| |
| |||
56 | 53 |
| |
57 | 54 |
| |
58 | 55 |
| |
59 |
| - | |
| 56 | + | |
60 | 57 |
| |
61 | 58 |
| |
62 | 59 |
| |
|
Lines changed: 37 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + |
Lines changed: 37 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
64 | 64 |
| |
65 | 65 |
| |
66 | 66 |
| |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
67 | 71 |
| |
68 | 72 |
| |
69 | 73 |
| |
| |||
583 | 587 |
| |
584 | 588 |
| |
585 | 589 |
| |
586 |
| - | |
587 |
| - | |
588 |
| - | |
589 |
| - | |
590 | 590 |
| |
591 | 591 |
| |
592 | 592 |
| |
593 | 593 |
| |
594 | 594 |
| |
595 | 595 |
| |
596 |
| - | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
597 | 606 |
| |
598 | 607 |
| |
599 | 608 |
| |
600 | 609 |
| |
601 |
| - | |
| 610 | + | |
602 | 611 |
| |
603 | 612 |
| |
604 |
| - | |
605 |
| - | |
606 |
| - | |
607 |
| - | |
608 | 613 |
| |
609 | 614 |
| |
610 | 615 |
| |
611 | 616 |
| |
612 | 617 |
| |
613 | 618 |
| |
| 619 | + | |
| 620 | + | |
| 621 | + | |
614 | 622 |
| |
615 | 623 |
| |
616 | 624 |
| |
| |||
619 | 627 |
| |
620 | 628 |
| |
621 | 629 |
| |
622 |
| - | |
623 |
| - | |
624 |
| - | |
625 |
| - | |
626 | 630 |
| |
627 | 631 |
| |
628 | 632 |
| |
629 | 633 |
| |
630 | 634 |
| |
631 | 635 |
| |
632 | 636 |
| |
| 637 | + | |
| 638 | + | |
| 639 | + | |
633 | 640 |
| |
634 | 641 |
| |
635 | 642 |
| |
| |||
638 | 645 |
| |
639 | 646 |
| |
640 | 647 |
| |
641 |
| - | |
642 |
| - | |
643 |
| - | |
644 |
| - | |
645 | 648 |
| |
646 | 649 |
| |
647 | 650 |
| |
648 | 651 |
| |
649 | 652 |
| |
650 | 653 |
| |
651 | 654 |
| |
| 655 | + | |
| 656 | + | |
| 657 | + | |
652 | 658 |
| |
653 | 659 |
| |
654 | 660 |
| |
| |||
676 | 682 |
| |
677 | 683 |
| |
678 | 684 |
| |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
679 | 692 |
| |
680 | 693 |
| |
681 | 694 |
| |
| |||
722 | 735 |
| |
723 | 736 |
| |
724 | 737 |
| |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
725 | 744 |
| |
726 | 745 |
| |
727 | 746 |
| |
|
0 commit comments
Comments
(0)