forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite9aaf06
committed
Remove dead NoMovementScanDirection code
Here remove some dead code from heapgettup() and heapgettup_pagemode()which was trying to support NoMovementScanDirection scans. This code cannever be reached as standard_ExecutorRun() never calls ExecutePlan withNoMovementScanDirection.Additionally, plans which were scanning an unordered index would useNoMovementScanDirection rather than ForwardScanDirection. There was noreal need for this, so here we adjust this so we use ForwardScanDirectionfor unordered index scans. A comment in pathnodes.h claimed thatNoMovementScanDirection was used for PathKey reasons, but if that wastrue, it no longer is, per code in build_index_paths().This does change the non-text format of the EXPLAIN output so thatunordered index scans now have a "Forward" scan direction rather than"NoMovement". The text format of EXPLAIN has not changed.Author: Melanie PlagemanReviewed-by: Tom Lane, David RowleyDiscussion:https://postgr.es/m/CAAKRu_bvkhka0CZQun28KTqhuUh5ZqY=_T8QEqZqOL02rpi2bw@mail.gmail.com1 parent856ca51 commite9aaf06
File tree
10 files changed
+43
-102
lines changed- src
- backend
- access/heap
- commands
- executor
- optimizer
- path
- plan
- util
- include
- access
- nodes
10 files changed
+43
-102
lines changedLines changed: 2 additions & 65 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
490 | 490 |
| |
491 | 491 |
| |
492 | 492 |
| |
493 |
| - | |
494 |
| - | |
495 |
| - | |
496 | 493 |
| |
497 | 494 |
| |
498 | 495 |
| |
| |||
583 | 580 |
| |
584 | 581 |
| |
585 | 582 |
| |
586 |
| - | |
| 583 | + | |
587 | 584 |
| |
588 | 585 |
| |
589 | 586 |
| |
| |||
653 | 650 |
| |
654 | 651 |
| |
655 | 652 |
| |
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 |
| - | |
681 |
| - | |
682 |
| - | |
683 |
| - | |
684 | 653 |
| |
685 | 654 |
| |
686 | 655 |
| |
| |||
918 | 887 |
| |
919 | 888 |
| |
920 | 889 |
| |
921 |
| - | |
| 890 | + | |
922 | 891 |
| |
923 | 892 |
| |
924 | 893 |
| |
| |||
978 | 947 |
| |
979 | 948 |
| |
980 | 949 |
| |
981 |
| - | |
982 |
| - | |
983 |
| - | |
984 |
| - | |
985 |
| - | |
986 |
| - | |
987 |
| - | |
988 |
| - | |
989 |
| - | |
990 |
| - | |
991 |
| - | |
992 |
| - | |
993 |
| - | |
994 |
| - | |
995 |
| - | |
996 |
| - | |
997 |
| - | |
998 |
| - | |
999 |
| - | |
1000 |
| - | |
1001 |
| - | |
1002 |
| - | |
1003 |
| - | |
1004 |
| - | |
1005 |
| - | |
1006 |
| - | |
1007 |
| - | |
1008 |
| - | |
1009 |
| - | |
1010 |
| - | |
1011 |
| - | |
1012 |
| - | |
1013 | 950 |
| |
1014 | 951 |
| |
1015 | 952 |
| |
|
Lines changed: 0 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3746 | 3746 |
| |
3747 | 3747 |
| |
3748 | 3748 |
| |
3749 |
| - | |
3750 |
| - | |
3751 |
| - | |
3752 | 3749 |
| |
3753 | 3750 |
| |
3754 | 3751 |
| |
|
Lines changed: 7 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
70 | 70 |
| |
71 | 71 |
| |
72 | 72 |
| |
73 |
| - | |
74 |
| - | |
75 |
| - | |
76 |
| - | |
77 |
| - | |
78 |
| - | |
79 |
| - | |
80 |
| - | |
81 |
| - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
82 | 80 |
| |
83 | 81 |
| |
84 | 82 |
| |
|
Lines changed: 7 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
90 | 90 |
| |
91 | 91 |
| |
92 | 92 |
| |
93 |
| - | |
94 |
| - | |
95 |
| - | |
96 |
| - | |
97 |
| - | |
98 |
| - | |
99 |
| - | |
100 |
| - | |
101 |
| - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
102 | 100 |
| |
103 | 101 |
| |
104 | 102 |
| |
|
Lines changed: 2 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1015 | 1015 |
| |
1016 | 1016 |
| |
1017 | 1017 |
| |
1018 |
| - | |
1019 |
| - | |
1020 |
| - | |
| 1018 | + | |
1021 | 1019 |
| |
1022 | 1020 |
| |
1023 | 1021 |
| |
| |||
1037 | 1035 |
| |
1038 | 1036 |
| |
1039 | 1037 |
| |
1040 |
| - | |
1041 |
| - | |
1042 |
| - | |
| 1038 | + | |
1043 | 1039 |
| |
1044 | 1040 |
| |
1045 | 1041 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3017 | 3017 |
| |
3018 | 3018 |
| |
3019 | 3019 |
| |
| 3020 | + | |
| 3021 | + | |
| 3022 | + | |
3020 | 3023 |
| |
3021 | 3024 |
| |
3022 | 3025 |
| |
|
Lines changed: 1 addition & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
982 | 982 |
| |
983 | 983 |
| |
984 | 984 |
| |
985 |
| - | |
986 |
| - | |
987 |
| - | |
| 985 | + | |
988 | 986 |
| |
989 | 987 |
| |
990 | 988 |
| |
|
Lines changed: 11 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
19 |
| - | |
20 |
| - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
21 | 23 |
| |
22 | 24 |
| |
23 | 25 |
| |
| |||
26 | 28 |
| |
27 | 29 |
| |
28 | 30 |
| |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
29 | 38 |
| |
30 | 39 |
| |
31 | 40 |
| |
|
Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1035 | 1035 |
| |
1036 | 1036 |
| |
1037 | 1037 |
| |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
1038 | 1042 |
| |
1039 | 1043 |
| |
1040 | 1044 |
| |
| |||
1099 | 1103 |
| |
1100 | 1104 |
| |
1101 | 1105 |
| |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
1102 | 1110 |
| |
1103 | 1111 |
| |
1104 | 1112 |
| |
|
Lines changed: 2 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1672 | 1672 |
| |
1673 | 1673 |
| |
1674 | 1674 |
| |
1675 |
| - | |
| 1675 | + | |
1676 | 1676 |
| |
1677 |
| - | |
1678 |
| - | |
1679 |
| - | |
1680 |
| - | |
| 1677 | + | |
1681 | 1678 |
| |
1682 | 1679 |
| |
1683 | 1680 |
| |
|
0 commit comments
Comments
(0)