- Notifications
You must be signed in to change notification settings - Fork4.9k
Commitcdbc0ca
committed
Fix background workers for EXEC_BACKEND
Commitda07a1e was broken for EXEC_BACKEND because I failed to realizethat the MaxBackends recomputation needed to be duplicated bysubprocesses in SubPostmasterMain. However, instead of having the valuebe recomputed at all, it's better to assign the correct value atpostmaster initialization time, and have it be propagated to exec'edbackends via BackendParameters.MaxBackends stays as zero until after modules inshared_preload_libraries have had a chance to register bgworkers, sincethe value is going to be untrustworthy till that's finished.Heikki Linnakangas and Álvaro Herrera1 parentd194d7a commitcdbc0ca
File tree
4 files changed
+52
-40
lines changed- src
- backend
- postmaster
- utils
- init
- misc
- include/postmaster
4 files changed
+52
-40
lines changedLines changed: 36 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
499 | 499 |
| |
500 | 500 |
| |
501 | 501 |
| |
| 502 | + | |
502 | 503 |
| |
503 | 504 |
| |
504 | 505 |
| |
| |||
897 | 898 |
| |
898 | 899 |
| |
899 | 900 |
| |
900 |
| - | |
901 |
| - | |
902 |
| - | |
903 |
| - | |
| 901 | + | |
| 902 | + | |
904 | 903 |
| |
905 |
| - | |
906 |
| - | |
907 |
| - | |
908 |
| - | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
909 | 909 |
| |
910 | 910 |
| |
911 | 911 |
| |
| |||
5152 | 5152 |
| |
5153 | 5153 |
| |
5154 | 5154 |
| |
| 5155 | + | |
| 5156 | + | |
5155 | 5157 |
| |
5156 | 5158 |
| |
5157 | 5159 |
| |
| |||
5162 | 5164 |
| |
5163 | 5165 |
| |
5164 | 5166 |
| |
| 5167 | + | |
| 5168 | + | |
| 5169 | + | |
| 5170 | + | |
| 5171 | + | |
5165 | 5172 |
| |
5166 | 5173 |
| |
5167 | 5174 |
| |
| |||
5214 | 5221 |
| |
5215 | 5222 |
| |
5216 | 5223 |
| |
| 5224 | + | |
| 5225 | + | |
| 5226 | + | |
| 5227 | + | |
| 5228 | + | |
| 5229 | + | |
| 5230 | + | |
| 5231 | + | |
| 5232 | + | |
| 5233 | + | |
| 5234 | + | |
| 5235 | + | |
| 5236 | + | |
| 5237 | + | |
| 5238 | + | |
| 5239 | + | |
| 5240 | + | |
5217 | 5241 |
| |
5218 | 5242 |
| |
5219 | 5243 |
| |
| |||
5836 | 5860 |
| |
5837 | 5861 |
| |
5838 | 5862 |
| |
| 5863 | + | |
| 5864 | + | |
5839 | 5865 |
| |
5840 | 5866 |
| |
5841 | 5867 |
| |
| |||
6061 | 6087 |
| |
6062 | 6088 |
| |
6063 | 6089 |
| |
| 6090 | + | |
| 6091 | + | |
6064 | 6092 |
| |
6065 | 6093 |
| |
6066 | 6094 |
| |
|
Lines changed: 5 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
103 | 103 |
| |
104 | 104 |
| |
105 | 105 |
| |
106 |
| - | |
107 |
| - | |
108 |
| - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
109 | 110 |
| |
110 | 111 |
| |
111 |
| - | |
112 | 112 |
| |
| 113 | + | |
113 | 114 |
| |
114 | 115 |
| |
115 | 116 |
| |
|
Lines changed: 2 additions & 28 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
103 | 103 |
| |
104 | 104 |
| |
105 | 105 |
| |
106 |
| - | |
107 |
| - | |
108 |
| - | |
109 |
| - | |
110 |
| - | |
111 |
| - | |
112 |
| - | |
113 |
| - | |
114 |
| - | |
115 |
| - | |
116 |
| - | |
117 | 106 |
| |
118 | 107 |
| |
119 | 108 |
| |
| |||
199 | 188 |
| |
200 | 189 |
| |
201 | 190 |
| |
202 |
| - | |
203 | 191 |
| |
204 |
| - | |
205 | 192 |
| |
206 | 193 |
| |
207 | 194 |
| |
| |||
1615 | 1602 |
| |
1616 | 1603 |
| |
1617 | 1604 |
| |
1618 |
| - | |
| 1605 | + | |
1619 | 1606 |
| |
1620 | 1607 |
| |
1621 | 1608 |
| |
| |||
2290 | 2277 |
| |
2291 | 2278 |
| |
2292 | 2279 |
| |
2293 |
| - | |
| 2280 | + | |
2294 | 2281 |
| |
2295 | 2282 |
| |
2296 | 2283 |
| |
| |||
8636 | 8623 |
| |
8637 | 8624 |
| |
8638 | 8625 |
| |
8639 |
| - | |
8640 |
| - | |
8641 |
| - | |
8642 |
| - | |
8643 |
| - | |
8644 |
| - | |
8645 |
| - | |
8646 | 8626 |
| |
8647 | 8627 |
| |
8648 | 8628 |
| |
| |||
8652 | 8632 |
| |
8653 | 8633 |
| |
8654 | 8634 |
| |
8655 |
| - | |
8656 |
| - | |
8657 |
| - | |
8658 |
| - | |
8659 |
| - | |
8660 |
| - | |
8661 | 8635 |
| |
8662 | 8636 |
| |
8663 | 8637 |
| |
|
Lines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
61 | 61 |
| |
62 | 62 |
| |
63 | 63 |
| |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
64 | 73 |
|
0 commit comments
Comments
(0)