forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0ba8b75
committed
Enlarge bit-space for MemoryContextMethodID
Reserve 4 bits for MemoryContextMethodID rather than 3. 3 bits didtechnically allow a maximum of 8 memory context types, however, we'veopted to reserve some bit patterns which left us with only 4 slots, allof which were used.Here we add another bit which frees up 8 slots for future memory contexttypes.In passing, adjust the enum names in MemoryContextMethodID to make itmore clear which ones can be used and which ones are reserved.Author: Matthias van de Meent, David RowleyDiscussion:https://postgr.es/m/CAApHDvqGSpCU95TmM=Bp=6xjL_nLys4zdZOpfNyWBk97Xrdj2w@mail.gmail.com1 parentc4ab7da commit0ba8b75
File tree
4 files changed
+72
-42
lines changed- src
- backend/utils/mmgr
- include/utils
4 files changed
+72
-42
lines changedLines changed: 14 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
395 | 395 |
| |
396 | 396 |
| |
397 | 397 |
| |
398 |
| - | |
| 398 | + | |
399 | 399 |
| |
400 |
| - | |
| 400 | + | |
401 | 401 |
| |
402 | 402 |
| |
403 | 403 |
| |
404 | 404 |
| |
405 |
| - | |
| 405 | + | |
406 | 406 |
| |
407 | 407 |
| |
408 | 408 |
| |
| |||
420 | 420 |
| |
421 | 421 |
| |
422 | 422 |
| |
423 |
| - | |
| 423 | + | |
424 | 424 |
| |
425 | 425 |
| |
426 | 426 |
| |
427 |
| - | |
428 |
| - | |
429 |
| - | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
430 | 437 |
| |
431 | 438 |
| |
432 | 439 |
| |
|
Lines changed: 21 additions & 22 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
40 | 45 |
| |
41 | 46 |
| |
42 | 47 |
| |
| |||
97 | 102 |
| |
98 | 103 |
| |
99 | 104 |
| |
100 |
| - | |
101 |
| - | |
| 105 | + | |
| 106 | + | |
102 | 107 |
| |
103 | 108 |
| |
104 | 109 |
| |
105 |
| - | |
106 |
| - | |
107 |
| - | |
108 |
| - | |
109 |
| - | |
110 |
| - | |
111 |
| - | |
112 |
| - | |
113 |
| - | |
114 |
| - | |
115 |
| - | |
116 |
| - | |
117 |
| - | |
118 |
| - | |
119 |
| - | |
120 |
| - | |
121 |
| - | |
122 |
| - | |
123 |
| - | |
124 |
| - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
125 | 122 |
| |
126 | 123 |
| |
| 124 | + | |
| 125 | + | |
127 | 126 |
| |
128 | 127 |
| |
129 | 128 |
| |
|
Lines changed: 13 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
104 | 104 |
| |
105 | 105 |
| |
106 | 106 |
| |
107 |
| - | |
108 |
| - | |
109 |
| - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
110 | 110 |
| |
111 | 111 |
| |
112 | 112 |
| |
113 | 113 |
| |
114 |
| - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
115 | 123 |
| |
116 | 124 |
| |
117 | 125 |
| |
118 | 126 |
| |
119 | 127 |
| |
120 | 128 |
| |
121 |
| - | |
| 129 | + | |
122 | 130 |
| |
123 | 131 |
| |
124 | 132 |
| |
|
Lines changed: 24 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 |
| - | |
| 15 | + | |
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
28 |
| - | |
| 28 | + | |
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
32 |
| - | |
| 32 | + | |
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
37 | 45 |
| |
38 | 46 |
| |
39 | 47 |
| |
| |||
93 | 101 |
| |
94 | 102 |
| |
95 | 103 |
| |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
96 | 110 |
| |
97 | 111 |
| |
98 | 112 |
| |
99 |
| - | |
| 113 | + | |
100 | 114 |
| |
101 | 115 |
| |
102 | 116 |
| |
| |||
131 | 145 |
| |
132 | 146 |
| |
133 | 147 |
| |
134 |
| - | |
135 |
| - | |
| 148 | + | |
| 149 | + | |
136 | 150 |
| |
137 | 151 |
| |
138 |
| - | |
| 152 | + | |
139 | 153 |
| |
140 | 154 |
| |
141 | 155 |
| |
| |||
149 | 163 |
| |
150 | 164 |
| |
151 | 165 |
| |
| 166 | + | |
152 | 167 |
| |
153 | 168 |
| |
154 | 169 |
| |
| |||
157 | 172 |
| |
158 | 173 |
| |
159 | 174 |
| |
160 |
| - | |
| 175 | + | |
161 | 176 |
| |
162 | 177 |
| |
163 | 178 |
| |
| |||
225 | 240 |
| |
226 | 241 |
| |
227 | 242 |
| |
| 243 | + | |
228 | 244 |
| |
229 | 245 |
| |
230 | 246 |
| |
|
0 commit comments
Comments
(0)