- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit9c911ec
committed
Make some minor improvements in memory-context infrastructure.
We lack a version of repalloc() that supports MCXT_ALLOC_NO_OOMsemantics, so invent repalloc_extended() with the usual set offlags. repalloc_huge() becomes a legacy wrapper for that.Also, fix dynahash.c so that it can support HASH_ENTER_NULLrequests when using the default palloc-based allocator.The only reason it didn't do that already was the lack of theMCXT_ALLOC_NO_OOM option when that code was written, ages ago.While here, simplify a few overcomplicated tests in mcxt.c.Discussion:https://postgr.es/m/2982579.1662416866@sss.pgh.pa.us1 parent1b11561 commit9c911ec
File tree
3 files changed
+56
-42
lines changed- src
- backend/utils
- hash
- mmgr
- include/utils
3 files changed
+56
-42
lines changedLines changed: 4 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
289 | 289 |
| |
290 | 290 |
| |
291 | 291 |
| |
292 |
| - | |
| 292 | + | |
| 293 | + | |
293 | 294 |
| |
294 | 295 |
| |
295 | 296 |
| |
| |||
939 | 940 |
| |
940 | 941 |
| |
941 | 942 |
| |
942 |
| - | |
943 |
| - | |
944 |
| - | |
| 943 | + | |
945 | 944 |
| |
946 | 945 |
| |
947 | 946 |
| |
| |||
1084 | 1083 |
| |
1085 | 1084 |
| |
1086 | 1085 |
| |
1087 |
| - | |
1088 |
| - | |
1089 |
| - | |
1090 |
| - | |
1091 |
| - | |
1092 | 1086 |
| |
| 1087 | + | |
1093 | 1088 |
| |
1094 | 1089 |
| |
1095 | 1090 |
| |
|
Lines changed: 50 additions & 33 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1114 | 1114 |
| |
1115 | 1115 |
| |
1116 | 1116 |
| |
1117 |
| - | |
1118 |
| - | |
| 1117 | + | |
| 1118 | + | |
1119 | 1119 |
| |
1120 | 1120 |
| |
1121 | 1121 |
| |
| |||
1269 | 1269 |
| |
1270 | 1270 |
| |
1271 | 1271 |
| |
1272 |
| - | |
1273 |
| - | |
| 1272 | + | |
| 1273 | + | |
1274 | 1274 |
| |
1275 | 1275 |
| |
1276 | 1276 |
| |
| |||
1351 | 1351 |
| |
1352 | 1352 |
| |
1353 | 1353 |
| |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
1354 | 1398 |
| |
1355 | 1399 |
| |
1356 | 1400 |
| |
| |||
1394 | 1438 |
| |
1395 | 1439 |
| |
1396 | 1440 |
| |
1397 |
| - | |
1398 |
| - | |
1399 |
| - | |
1400 |
| - | |
1401 |
| - | |
1402 |
| - | |
1403 |
| - | |
1404 |
| - | |
1405 |
| - | |
1406 |
| - | |
1407 |
| - | |
1408 |
| - | |
1409 |
| - | |
1410 |
| - | |
1411 |
| - | |
1412 |
| - | |
1413 |
| - | |
1414 |
| - | |
1415 |
| - | |
1416 |
| - | |
1417 |
| - | |
1418 |
| - | |
1419 |
| - | |
1420 |
| - | |
1421 |
| - | |
1422 |
| - | |
1423 |
| - | |
1424 |
| - | |
1425 |
| - | |
| 1441 | + | |
| 1442 | + | |
1426 | 1443 |
| |
1427 | 1444 |
| |
1428 | 1445 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
78 | 78 |
| |
79 | 79 |
| |
80 | 80 |
| |
| 81 | + | |
| 82 | + | |
81 | 83 |
| |
82 | 84 |
| |
83 | 85 |
| |
|
0 commit comments
Comments
(0)