forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6c42b2b
committed
Fix unaligned accesses in DecodeUpdate().
The xl_heap_header_len structures in an XLOG_HEAP_UPDATE record aren'tnecessarily aligned adequately. The regular replay function for theserecords is aware of that, but decode.c didn't get the memo. I'm notsure why the buildfarm failed to catch this; the test_decoding testcertainly blows up real good on my old HPPA box.Also, I'm pretty sure that the address arithmetic was wrong for thecase of XLOG_HEAP_CONTAINS_OLD and not XLOG_HEAP_CONTAINS_NEW_TUPLE,though this apparently can't happen when logical decoding is active.1 parenta3655dd commit6c42b2b
1 file changed
+17
-10
lines changedLines changed: 17 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
622 | 622 |
| |
623 | 623 |
| |
624 | 624 |
| |
625 |
| - | |
| 625 | + | |
626 | 626 |
| |
627 | 627 |
| |
628 | 628 |
| |
629 | 629 |
| |
630 |
| - | |
631 | 630 |
| |
632 | 631 |
| |
633 | 632 |
| |
| |||
637 | 636 |
| |
638 | 637 |
| |
639 | 638 |
| |
640 |
| - | |
| 639 | + | |
| 640 | + | |
641 | 641 |
| |
642 | 642 |
| |
643 | 643 |
| |
644 | 644 |
| |
645 | 645 |
| |
| 646 | + | |
| 647 | + | |
| 648 | + | |
646 | 649 |
| |
647 | 650 |
| |
648 | 651 |
| |
649 |
| - | |
| 652 | + | |
650 | 653 |
| |
651 | 654 |
| |
652 | 655 |
| |
653 | 656 |
| |
654 |
| - | |
| 657 | + | |
655 | 658 |
| |
656 | 659 |
| |
657 | 660 |
| |
658 | 661 |
| |
659 |
| - | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
660 | 665 |
| |
661 |
| - | |
662 |
| - | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
663 | 669 |
| |
664 |
| - | |
| 670 | + | |
665 | 671 |
| |
666 |
| - | |
| 672 | + | |
| 673 | + | |
667 | 674 |
| |
668 | 675 |
| |
669 | 676 |
| |
|
0 commit comments
Comments
(0)