forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0f5505a
committed
Remove pointless HeapTupleHeaderIndicatesMovedPartitions calls
Pavan Deolasee recently noted that a few of theHeapTupleHeaderIndicatesMovedPartitions calls added by commit5db6df0 are useless, since they are done after comparing t_selfwith t_ctid. But because t_self can never be set to the magical valuesthat indicate that the tuple moved partition, this can never succeed: ifthe first test fails (so we know t_self equals t_ctid), necessarily thesecond test will also fail.So these checks can be removed and no harm is done. There's no bughere, just a code legibility issue.Reported-by: Pavan Deolasee <pavan.deolasee@gmail.com>Discussion:https://postgr.es/m/20200929164411.GA15497@alvherre.pgsql1 parent6a03369 commit0f5505a
2 files changed
+7
-14
lines changedLines changed: 4 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2769 | 2769 |
| |
2770 | 2770 |
| |
2771 | 2771 |
| |
2772 |
| - | |
2773 |
| - | |
| 2772 | + | |
2774 | 2773 |
| |
2775 | 2774 |
| |
2776 | 2775 |
| |
| |||
3399 | 3398 |
| |
3400 | 3399 |
| |
3401 | 3400 |
| |
3402 |
| - | |
3403 |
| - | |
| 3401 | + | |
3404 | 3402 |
| |
3405 | 3403 |
| |
3406 | 3404 |
| |
| |||
4636 | 4634 |
| |
4637 | 4635 |
| |
4638 | 4636 |
| |
4639 |
| - | |
4640 |
| - | |
| 4637 | + | |
4641 | 4638 |
| |
4642 | 4639 |
| |
4643 | 4640 |
| |
| |||
5210 | 5207 |
| |
5211 | 5208 |
| |
5212 | 5209 |
| |
5213 |
| - | |
5214 |
| - | |
| 5210 | + | |
5215 | 5211 |
| |
5216 | 5212 |
| |
5217 | 5213 |
| |
|
Lines changed: 3 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
607 | 607 |
| |
608 | 608 |
| |
609 | 609 |
| |
610 |
| - | |
611 |
| - | |
| 610 | + | |
612 | 611 |
| |
613 | 612 |
| |
614 | 613 |
| |
| |||
653 | 652 |
| |
654 | 653 |
| |
655 | 654 |
| |
656 |
| - | |
657 |
| - | |
| 655 | + | |
658 | 656 |
| |
659 | 657 |
| |
660 | 658 |
| |
| |||
714 | 712 |
| |
715 | 713 |
| |
716 | 714 |
| |
717 |
| - | |
718 |
| - | |
| 715 | + | |
719 | 716 |
| |
720 | 717 |
| |
721 | 718 |
| |
|
0 commit comments
Comments
(0)