- Notifications
You must be signed in to change notification settings - Fork5
Commitdad75a6
committed
Create a "shmem_startup_hook" to be called at the end of shared memory
initialization, to give loadable modules a reasonable place to performcreation of any shared memory areas they need. This is the logical conclusionof our previous creation of RequestAddinShmemSpace() and RequestAddinLWLocks().We don't need an explicit shmem_shutdown_hook, because the existingon_shmem_exit and on_proc_exit mechanisms serve that need.Also, adjust SubPostmasterMain so that libraries that got loaded into thepostmaster will be loaded into all child processes, not only regular backends.This improves consistency with the non-EXEC_BACKEND behavior, and might benecessary for functionality for some types of add-ons.1 parentbbeb0bb commitdad75a6
File tree
3 files changed
+25
-12
lines changed- src
- backend
- postmaster
- storage/ipc
- include/storage
3 files changed
+25
-12
lines changedLines changed: 12 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
40 |
| - | |
| 40 | + | |
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
| |||
3668 | 3668 |
| |
3669 | 3669 |
| |
3670 | 3670 |
| |
| 3671 | + | |
| 3672 | + | |
| 3673 | + | |
| 3674 | + | |
| 3675 | + | |
| 3676 | + | |
| 3677 | + | |
| 3678 | + | |
3671 | 3679 |
| |
3672 | 3680 |
| |
3673 | 3681 |
| |
| |||
3680 | 3688 |
| |
3681 | 3689 |
| |
3682 | 3690 |
| |
| 3691 | + | |
| 3692 | + | |
| 3693 | + | |
3683 | 3694 |
| |
3684 | 3695 |
| |
3685 | 3696 |
| |
3686 | 3697 |
| |
3687 | 3698 |
| |
3688 | 3699 |
| |
3689 |
| - | |
3690 |
| - | |
3691 |
| - | |
3692 |
| - | |
3693 |
| - | |
3694 |
| - | |
3695 |
| - | |
3696 |
| - | |
3697 |
| - | |
3698 | 3700 |
| |
3699 | 3701 |
| |
3700 | 3702 |
| |
|
Lines changed: 9 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
| 37 | + | |
| 38 | + | |
37 | 39 |
| |
38 | 40 |
| |
39 | 41 |
| |
| |||
222 | 224 |
| |
223 | 225 |
| |
224 | 226 |
| |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
225 | 233 |
|
Lines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
| 14 | + | |
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
| 22 | + | |
22 | 23 |
| |
23 | 24 |
| |
24 | 25 |
| |
| |||
71 | 72 |
| |
72 | 73 |
| |
73 | 74 |
| |
| 75 | + | |
| 76 | + | |
74 | 77 |
| |
75 | 78 |
| |
76 | 79 |
|
0 commit comments
Comments
(0)