forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit85adb5e
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.Discussion:https://postgr.es/m/20200929164411.GA15497@alvherre.pgsql1 parent2203ede commit85adb5e
2 files changed
+7
-14
lines changedLines changed: 4 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2618 | 2618 |
| |
2619 | 2619 |
| |
2620 | 2620 |
| |
2621 |
| - | |
2622 |
| - | |
| 2621 | + | |
2623 | 2622 |
| |
2624 | 2623 |
| |
2625 | 2624 |
| |
| |||
3248 | 3247 |
| |
3249 | 3248 |
| |
3250 | 3249 |
| |
3251 |
| - | |
3252 |
| - | |
| 3250 | + | |
3253 | 3251 |
| |
3254 | 3252 |
| |
3255 | 3253 |
| |
| |||
4485 | 4483 |
| |
4486 | 4484 |
| |
4487 | 4485 |
| |
4488 |
| - | |
4489 |
| - | |
| 4486 | + | |
4490 | 4487 |
| |
4491 | 4488 |
| |
4492 | 4489 |
| |
| |||
5059 | 5056 |
| |
5060 | 5057 |
| |
5061 | 5058 |
| |
5062 |
| - | |
5063 |
| - | |
| 5059 | + | |
5064 | 5060 |
| |
5065 | 5061 |
| |
5066 | 5062 |
| |
|
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)