forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc629324
committed
Partially flatten struct tupleDesc so that it can be used in DSM.
TupleDesc's attributes were already stored in contiguous memory after thestruct. Go one step further and get rid of the array of pointers toattributes so that they can be stored in shared memory mapped at differentaddresses in each backend. This won't work for TupleDescs with contraintsand defaults, since those point to other objects, but for many purposesonly attributes are needed.Author: Thomas MunroReviewed-By: Andres FreundDiscussion:https://postgr.es/m/CAEepm=0ZtQ-SpsgCyzzYpsXS6e=kZWqk3g5Ygn3MDV7A8dabUA@mail.gmail.com1 parent2cd7084 commitc629324
2 files changed
+18
-57
lines changedLines changed: 14 additions & 53 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
44 |
| - | |
45 |
| - | |
46 | 44 |
| |
47 | 45 |
| |
48 | 46 |
| |
| |||
51 | 49 |
| |
52 | 50 |
| |
53 | 51 |
| |
54 |
| - | |
55 |
| - | |
56 |
| - | |
57 |
| - | |
58 |
| - | |
59 |
| - | |
60 |
| - | |
61 |
| - | |
62 |
| - | |
63 |
| - | |
| 52 | + | |
64 | 53 |
| |
65 |
| - | |
66 |
| - | |
67 |
| - | |
68 |
| - | |
69 |
| - | |
70 |
| - | |
71 |
| - | |
72 |
| - | |
73 |
| - | |
74 |
| - | |
75 |
| - | |
76 |
| - | |
77 |
| - | |
78 |
| - | |
79 |
| - | |
80 |
| - | |
81 |
| - | |
82 |
| - | |
83 |
| - | |
84 |
| - | |
85 |
| - | |
| 54 | + | |
| 55 | + | |
86 | 56 |
| |
87 | 57 |
| |
88 | 58 |
| |
| |||
99 | 69 |
| |
100 | 70 |
| |
101 | 71 |
| |
102 |
| - | |
| 72 | + | |
103 | 73 |
| |
104 | 74 |
| |
105 |
| - | |
106 |
| - | |
107 |
| - | |
108 | 75 |
| |
109 | 76 |
| |
110 | 77 |
| |
111 | 78 |
| |
112 | 79 |
| |
113 | 80 |
| |
114 | 81 |
| |
| 82 | + | |
115 | 83 |
| |
116 |
| - | |
117 |
| - | |
118 |
| - | |
119 |
| - | |
| 84 | + | |
120 | 85 |
| |
121 |
| - | |
122 |
| - | |
123 |
| - | |
124 |
| - | |
125 |
| - | |
126 |
| - | |
127 |
| - | |
128 |
| - | |
| 86 | + | |
| 87 | + | |
129 | 88 |
| |
130 | 89 |
| |
131 | 90 |
| |
| |||
147 | 106 |
| |
148 | 107 |
| |
149 | 108 |
| |
150 |
| - | |
151 |
| - | |
152 |
| - | |
153 |
| - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
154 | 115 |
| |
155 | 116 |
| |
156 | 117 |
| |
|
Lines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
71 | 71 |
| |
72 | 72 |
| |
73 | 73 |
| |
74 |
| - | |
75 |
| - | |
76 |
| - | |
77 | 74 |
| |
78 | 75 |
| |
79 | 76 |
| |
80 | 77 |
| |
| 78 | + | |
| 79 | + | |
| 80 | + | |
81 | 81 |
| |
82 | 82 |
| |
83 | 83 |
| |
84 |
| - | |
| 84 | + | |
85 | 85 |
| |
86 | 86 |
| |
87 | 87 |
| |
|
0 commit comments
Comments
(0)