forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8ff5f82
committed
Reduce the size of the fmgr_builtin_oid_index[] array.
This index array was originally defined to have 10000 entries (rangingup to FirstGenbkiObjectId), but we really only need entries up to thelast existing builtin function OID, currently 6121. That saves closeto 8K of never-accessed space in the server executable, at the smallprice of one more fetch in fmgr_isbuiltin().We could reduce the array size still further by renumbering a few ofthe highest-numbered builtin functions; but there's a small risk ofbreaking clients that have chosen to hardwire those function OIDs,so it's not clear if it'd be worth the trouble. (We should, however,discourage future patches from choosing function OIDs above 6K as longas there's still lots of space below that.)Discussion:https://postgr.es/m/12359.1547063064@sss.pgh.pa.us1 parent59029b6 commit8ff5f82
File tree
3 files changed
+19
-21
lines changed- src
- backend/utils
- fmgr
- include/utils
3 files changed
+19
-21
lines changedLines changed: 12 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
80 | 80 |
| |
81 | 81 |
| |
82 | 82 |
| |
83 |
| - | |
84 |
| - | |
85 |
| - | |
86 |
| - | |
87 |
| - | |
88 | 83 |
| |
89 | 84 |
| |
90 | 85 |
| |
| |||
225 | 220 |
| |
226 | 221 |
| |
227 | 222 |
| |
| 223 | + | |
228 | 224 |
| |
229 | 225 |
| |
230 | 226 |
| |
231 | 227 |
| |
232 | 228 |
| |
233 | 229 |
| |
234 | 230 |
| |
| 231 | + | |
235 | 232 |
| |
236 | 233 |
| |
237 | 234 |
| |
| |||
244 | 241 |
| |
245 | 242 |
| |
246 | 243 |
| |
247 |
| - | |
| 244 | + | |
248 | 245 |
| |
249 |
| - | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
250 | 249 |
| |
251 | 250 |
| |
252 | 251 |
| |
253 |
| - | |
254 |
| - | |
255 |
| - | |
256 |
| - | |
257 |
| - | |
258 |
| - | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
259 | 255 |
| |
260 |
| - | |
| 256 | + | |
261 | 257 |
| |
262 | 258 |
| |
263 | 259 |
| |
264 |
| - | |
| 260 | + | |
265 | 261 |
| |
266 | 262 |
| |
267 | 263 |
| |
268 | 264 |
| |
269 | 265 |
| |
270 | 266 |
| |
271 |
| - | |
| 267 | + | |
272 | 268 |
| |
273 | 269 |
| |
274 | 270 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
75 | 75 |
| |
76 | 76 |
| |
77 | 77 |
| |
78 |
| - | |
| 78 | + | |
79 | 79 |
| |
80 | 80 |
| |
81 | 81 |
| |
82 | 82 |
| |
83 |
| - | |
| 83 | + | |
84 | 84 |
| |
85 | 85 |
| |
86 | 86 |
| |
|
Lines changed: 5 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
36 | 36 |
| |
37 | 37 |
| |
38 | 38 |
| |
| 39 | + | |
| 40 | + | |
39 | 41 |
| |
40 |
| - | |
41 |
| - | |
| 42 | + | |
| 43 | + | |
42 | 44 |
| |
43 | 45 |
| |
44 |
| - | |
| 46 | + | |
45 | 47 |
| |
46 | 48 |
|
0 commit comments
Comments
(0)