forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitad7dbee
committed
Allow tupleslots to have a fixed tupledesc, use in executor nodes.
The reason for doing so is that it will allow expression evaluation tooptimize based on the underlying tupledesc. In particular it willallow to JIT tuple deforming together with the expression itself.For that expression initialization needs to be moved after therelevant slots are initialized - mostly unproblematic, except in thecase of nodeWorktablescan.c.After doing so there's no need for ExecAssignResultType() andExecAssignResultTypeFromTL() anymore, as all former callers have beenconverted to create a slot with a fixed descriptor.When creating a slot with a fixed descriptor, tts_values/isnull can beallocated together with the main slot, reducing allocation overheadand increasing cache density a bit.Author: Andres FreundDiscussion:https://postgr.es/m/20171206093717.vqdxe5icqttpxs3p@alap3.anarazel.de1 parentbf6c614 commitad7dbee
File tree
52 files changed
+566
-778
lines changed- src
- backend
- commands
- executor
- replication/logical
- include/executor
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
52 files changed
+566
-778
lines changedLines changed: 2 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2444 | 2444 |
| |
2445 | 2445 |
| |
2446 | 2446 |
| |
2447 |
| - | |
2448 |
| - | |
| 2447 | + | |
2449 | 2448 |
| |
2450 |
| - | |
| 2449 | + | |
2451 | 2450 |
| |
2452 | 2451 |
| |
2453 | 2452 |
| |
|
Lines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3251 | 3251 |
| |
3252 | 3252 |
| |
3253 | 3253 |
| |
3254 |
| - | |
| 3254 | + | |
| 3255 | + | |
3255 | 3256 |
| |
3256 | 3257 |
| |
3257 | 3258 |
| |
| |||
3264 | 3265 |
| |
3265 | 3266 |
| |
3266 | 3267 |
| |
3267 |
| - | |
| 3268 | + | |
| 3269 | + | |
3268 | 3270 |
| |
3269 | 3271 |
| |
3270 | 3272 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
243 | 243 |
| |
244 | 244 |
| |
245 | 245 |
| |
| 246 | + | |
| 247 | + | |
246 | 248 |
| |
247 | 249 |
| |
248 | 250 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2415 | 2415 |
| |
2416 | 2416 |
| |
2417 | 2417 |
| |
2418 |
| - | |
| 2418 | + | |
2419 | 2419 |
| |
2420 | 2420 |
| |
2421 | 2421 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1073 | 1073 |
| |
1074 | 1074 |
| |
1075 | 1075 |
| |
1076 |
| - | |
| 1076 | + | |
1077 | 1077 |
| |
1078 | 1078 |
| |
1079 | 1079 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
93 | 93 |
| |
94 | 94 |
| |
95 | 95 |
| |
96 |
| - | |
| 96 | + | |
97 | 97 |
| |
98 | 98 |
| |
99 | 99 |
| |
| |||
112 | 112 |
| |
113 | 113 |
| |
114 | 114 |
| |
115 |
| - | |
| 115 | + | |
116 | 116 |
| |
117 | 117 |
| |
118 | 118 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
229 | 229 |
| |
230 | 230 |
| |
231 | 231 |
| |
232 |
| - | |
| 232 | + | |
233 | 233 |
| |
234 | 234 |
| |
235 | 235 |
| |
|
Lines changed: 85 additions & 29 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
61 |
| - | |
| 61 | + | |
62 | 62 |
| |
63 | 63 |
| |
64 | 64 |
| |
| |||
104 | 104 |
| |
105 | 105 |
| |
106 | 106 |
| |
107 |
| - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
108 | 110 |
| |
109 | 111 |
| |
110 | 112 |
| |
111 |
| - | |
| 113 | + | |
112 | 114 |
| |
113 |
| - | |
| 115 | + | |
| 116 | + | |
114 | 117 |
| |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
115 | 131 |
| |
116 | 132 |
| |
117 | 133 |
| |
118 | 134 |
| |
119 |
| - | |
| 135 | + | |
| 136 | + | |
120 | 137 |
| |
121 | 138 |
| |
122 | 139 |
| |
123 | 140 |
| |
124 | 141 |
| |
125 | 142 |
| |
126 | 143 |
| |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
127 | 157 |
| |
128 | 158 |
| |
129 | 159 |
| |
| |||
134 | 164 |
| |
135 | 165 |
| |
136 | 166 |
| |
137 |
| - | |
| 167 | + | |
138 | 168 |
| |
139 |
| - | |
| 169 | + | |
140 | 170 |
| |
141 | 171 |
| |
142 | 172 |
| |
| |||
173 | 203 |
| |
174 | 204 |
| |
175 | 205 |
| |
176 |
| - | |
177 |
| - | |
178 |
| - | |
179 |
| - | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
180 | 213 |
| |
181 | 214 |
| |
182 | 215 |
| |
| |||
198 | 231 |
| |
199 | 232 |
| |
200 | 233 |
| |
201 |
| - | |
202 |
| - | |
203 |
| - | |
| 234 | + | |
204 | 235 |
| |
205 | 236 |
| |
206 | 237 |
| |
| |||
220 | 251 |
| |
221 | 252 |
| |
222 | 253 |
| |
223 |
| - | |
224 |
| - | |
225 |
| - | |
226 |
| - | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
227 | 261 |
| |
228 | 262 |
| |
229 | 263 |
| |
| |||
247 | 281 |
| |
248 | 282 |
| |
249 | 283 |
| |
| 284 | + | |
| 285 | + | |
250 | 286 |
| |
251 | 287 |
| |
252 | 288 |
| |
| |||
816 | 852 |
| |
817 | 853 |
| |
818 | 854 |
| |
819 |
| - | |
| 855 | + | |
820 | 856 |
| |
821 | 857 |
| |
822 | 858 |
| |
| |||
825 | 861 |
| |
826 | 862 |
| |
827 | 863 |
| |
828 |
| - | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
829 | 867 |
| |
830 | 868 |
| |
831 | 869 |
| |
832 |
| - | |
| 870 | + | |
833 | 871 |
| |
834 |
| - | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
835 | 888 |
| |
836 | 889 |
| |
837 | 890 |
| |
838 | 891 |
| |
839 | 892 |
| |
840 | 893 |
| |
841 | 894 |
| |
842 |
| - | |
| 895 | + | |
843 | 896 |
| |
844 |
| - | |
| 897 | + | |
| 898 | + | |
845 | 899 |
| |
846 | 900 |
| |
847 | 901 |
| |
848 | 902 |
| |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
849 | 907 |
| |
850 | 908 |
| |
851 | 909 |
| |
852 |
| - | |
| 910 | + | |
853 | 911 |
| |
854 |
| - | |
| 912 | + | |
855 | 913 |
| |
856 | 914 |
| |
857 | 915 |
| |
| |||
865 | 923 |
| |
866 | 924 |
| |
867 | 925 |
| |
868 |
| - | |
869 |
| - | |
870 |
| - | |
| 926 | + | |
871 | 927 |
| |
872 | 928 |
| |
873 | 929 |
| |
|
0 commit comments
Comments
(0)