forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0bbafb5
committed
Allocate Backend structs in PostmasterContext.
The child processes don't need them. By allocating them inPostmasterContext, the memory gets free'd and is made available forother stuff in the child processes.Reviewed-by: Thomas MunroDiscussion:https://www.postgresql.org/message-id/4f95c1fc-ad3c-7974-3a8c-6faa3931804c@iki.fi1 parent1ca3126 commit0bbafb5
2 files changed
+19
-16
lines changedLines changed: 8 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
| 36 | + | |
36 | 37 |
| |
37 | 38 |
| |
38 | 39 |
| |
| |||
347 | 348 |
| |
348 | 349 |
| |
349 | 350 |
| |
350 |
| - | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
351 | 354 |
| |
352 | 355 |
| |
353 | 356 |
| |
| |||
455 | 458 |
| |
456 | 459 |
| |
457 | 460 |
| |
458 |
| - | |
| 461 | + | |
459 | 462 |
| |
460 | 463 |
| |
461 | 464 |
| |
| |||
951 | 954 |
| |
952 | 955 |
| |
953 | 956 |
| |
954 |
| - | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
955 | 960 |
| |
956 | 961 |
| |
957 | 962 |
| |
|
Lines changed: 11 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3321 | 3321 |
| |
3322 | 3322 |
| |
3323 | 3323 |
| |
3324 |
| - | |
| 3324 | + | |
3325 | 3325 |
| |
3326 | 3326 |
| |
3327 | 3327 |
| |
| |||
3414 | 3414 |
| |
3415 | 3415 |
| |
3416 | 3416 |
| |
3417 |
| - | |
| 3417 | + | |
3418 | 3418 |
| |
3419 | 3419 |
| |
3420 | 3420 |
| |
| |||
3470 | 3470 |
| |
3471 | 3471 |
| |
3472 | 3472 |
| |
3473 |
| - | |
| 3473 | + | |
3474 | 3474 |
| |
3475 | 3475 |
| |
3476 | 3476 |
| |
| |||
3507 | 3507 |
| |
3508 | 3508 |
| |
3509 | 3509 |
| |
3510 |
| - | |
| 3510 | + | |
3511 | 3511 |
| |
3512 | 3512 |
| |
3513 | 3513 |
| |
| |||
4083 | 4083 |
| |
4084 | 4084 |
| |
4085 | 4085 |
| |
4086 |
| - | |
| 4086 | + | |
4087 | 4087 |
| |
4088 | 4088 |
| |
4089 | 4089 |
| |
| |||
4099 | 4099 |
| |
4100 | 4100 |
| |
4101 | 4101 |
| |
4102 |
| - | |
| 4102 | + | |
4103 | 4103 |
| |
4104 | 4104 |
| |
4105 | 4105 |
| |
| |||
4129 | 4129 |
| |
4130 | 4130 |
| |
4131 | 4131 |
| |
4132 |
| - | |
4133 |
| - | |
4134 | 4132 |
| |
4135 | 4133 |
| |
4136 | 4134 |
| |
| |||
4161 | 4159 |
| |
4162 | 4160 |
| |
4163 | 4161 |
| |
4164 |
| - | |
| 4162 | + | |
4165 | 4163 |
| |
4166 | 4164 |
| |
4167 | 4165 |
| |
| |||
5424 | 5422 |
| |
5425 | 5423 |
| |
5426 | 5424 |
| |
5427 |
| - | |
| 5425 | + | |
5428 | 5426 |
| |
5429 | 5427 |
| |
5430 | 5428 |
| |
| |||
5451 | 5449 |
| |
5452 | 5450 |
| |
5453 | 5451 |
| |
5454 |
| - | |
| 5452 | + | |
5455 | 5453 |
| |
5456 | 5454 |
| |
5457 | 5455 |
| |
| |||
5696 | 5694 |
| |
5697 | 5695 |
| |
5698 | 5696 |
| |
5699 |
| - | |
| 5697 | + | |
5700 | 5698 |
| |
5701 | 5699 |
| |
5702 | 5700 |
| |
| |||
5822 | 5820 |
| |
5823 | 5821 |
| |
5824 | 5822 |
| |
5825 |
| - | |
| 5823 | + | |
5826 | 5824 |
| |
5827 | 5825 |
| |
5828 | 5826 |
| |
|
0 commit comments
Comments
(0)