- Notifications
You must be signed in to change notification settings - Fork5
Commit85d72f0
committed
Teach heapam code to know the difference between a real seqscan and the
pseudo HeapScanDesc created for a bitmap heap scan. This avoids some uselessoverhead during a bitmap scan startup, in particular invoking the syncscancode. (We might someday want to do that, but right now it's merely uselesscontention for shared memory, to say nothing of possibly pushing usefulentries out of syncscan's small LRU list.) This also allows elimination ofugly pgstat_discount_heap_scan() kluge.1 parent7063c46 commit85d72f0
File tree
5 files changed
+48
-34
lines changed- src
- backend
- access/heap
- executor
- include
- access
5 files changed
+48
-34
lines changedLines changed: 34 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
61 | 65 |
| |
62 | 66 |
| |
63 | 67 |
| |
| |||
95 | 99 |
| |
96 | 100 |
| |
97 | 101 |
| |
98 |
| - | |
99 |
| - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
100 | 105 |
| |
101 | 106 |
| |
102 | 107 |
| |
| |||
114 | 119 |
| |
115 | 120 |
| |
116 | 121 |
| |
117 |
| - | |
118 |
| - | |
119 | 122 |
| |
120 | 123 |
| |
121 | 124 |
| |
| |||
133 | 136 |
| |
134 | 137 |
| |
135 | 138 |
| |
136 |
| - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
137 | 145 |
| |
138 | 146 |
| |
139 | 147 |
| |
| |||
1037 | 1045 |
| |
1038 | 1046 |
| |
1039 | 1047 |
| |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
1040 | 1053 |
| |
1041 | 1054 |
| |
1042 | 1055 |
| |
1043 | 1056 |
| |
1044 | 1057 |
| |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
1045 | 1072 |
| |
1046 | 1073 |
| |
1047 | 1074 |
| |
| |||
1062 | 1089 |
| |
1063 | 1090 |
| |
1064 | 1091 |
| |
| 1092 | + | |
1065 | 1093 |
| |
1066 | 1094 |
| |
1067 | 1095 |
| |
|
Lines changed: 6 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
24 |
| - | |
| 24 | + | |
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
| |||
388 | 388 |
| |
389 | 389 |
| |
390 | 390 |
| |
391 |
| - | |
392 |
| - | |
393 |
| - | |
394 | 391 |
| |
395 | 392 |
| |
396 | 393 |
| |
| |||
522 | 519 |
| |
523 | 520 |
| |
524 | 521 |
| |
525 |
| - | |
526 |
| - | |
527 |
| - | |
528 |
| - | |
529 |
| - | |
530 |
| - | |
531 |
| - | |
532 |
| - | |
533 |
| - | |
534 |
| - | |
535 |
| - | |
536 |
| - | |
| 522 | + | |
537 | 523 |
| |
538 |
| - | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
539 | 528 |
| |
540 | 529 |
| |
541 | 530 |
| |
|
Lines changed: 3 additions & 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 |
| |
| |||
141 | 141 |
| |
142 | 142 |
| |
143 | 143 |
| |
| 144 | + | |
| 145 | + | |
144 | 146 |
| |
145 | 147 |
| |
146 | 148 |
| |
|
Lines changed: 4 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
| 29 | + | |
| 30 | + | |
29 | 31 |
| |
30 | 32 |
| |
31 | 33 |
| |
32 | 34 |
| |
33 | 35 |
| |
34 |
| - | |
35 | 36 |
| |
36 | 37 |
| |
37 | 38 |
| |
| |||
42 | 43 |
| |
43 | 44 |
| |
44 | 45 |
| |
45 |
| - | |
| 46 | + | |
46 | 47 |
| |
47 | 48 |
| |
48 | 49 |
| |
|
Lines changed: 1 addition & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 |
| - | |
| 8 | + | |
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
| |||
518 | 518 |
| |
519 | 519 |
| |
520 | 520 |
| |
521 |
| - | |
522 |
| - | |
523 |
| - | |
524 |
| - | |
525 |
| - | |
526 |
| - | |
527 | 521 |
| |
528 | 522 |
| |
529 | 523 |
| |
|
0 commit comments
Comments
(0)