forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8cacea7
committed
Ensure sufficient alignment for ParallelTableScanDescData in BTShared.
Previously ParallelTableScanDescData was just a member in BTShared,but afterc2fe139 that doesn't guarantee sufficient alignment asspecific AMs might (are likely to) need atomic variables in thestruct.One might think that MAXALIGNing would be sufficient, but as acomment in shm_toc_allocate() explains, that's not enough. For now,copy the hack described there.For parallel sequential scans no such change is needed, as itsallocations go through shm_toc_allocate().An alternative approach would have been to allocate the parallel scandescriptor in a separate TOC entry, but there seems little benefit indoing so.Per buildfarm member dromedary.Author: Andres FreundDiscussion:https://postgr.es/m/20190311203126.ty5gbfz42gjbm6i6@alap3.anarazel.de1 parentc2fe139 commit8cacea7
1 file changed
+18
-7
lines changedLines changed: 18 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
157 | 157 |
| |
158 | 158 |
| |
159 | 159 |
| |
160 |
| - | |
161 |
| - | |
162 |
| - | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
163 | 163 |
| |
164 |
| - | |
165 | 164 |
| |
166 | 165 |
| |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
167 | 175 |
| |
168 | 176 |
| |
169 | 177 |
| |
| |||
1317 | 1325 |
| |
1318 | 1326 |
| |
1319 | 1327 |
| |
1320 |
| - | |
| 1328 | + | |
| 1329 | + | |
1321 | 1330 |
| |
1322 | 1331 |
| |
1323 | 1332 |
| |
| |||
1407 | 1416 |
| |
1408 | 1417 |
| |
1409 | 1418 |
| |
1410 |
| - | |
| 1419 | + | |
| 1420 | + | |
1411 | 1421 |
| |
1412 | 1422 |
| |
1413 | 1423 |
| |
| |||
1672 | 1682 |
| |
1673 | 1683 |
| |
1674 | 1684 |
| |
1675 |
| - | |
| 1685 | + | |
| 1686 | + | |
1676 | 1687 |
| |
1677 | 1688 |
| |
1678 | 1689 |
| |
|
0 commit comments
Comments
(0)