- Notifications
You must be signed in to change notification settings - Fork5
Commit1c850fa
committed
Make smart shutdown work in combination with Hot Standby/Streaming Replication.
At present, killing the startup process does not release any locks it holds,so we must wait to stop the startup and walreceiver processes until allread-only backends have exited. Without this patch, the startup andwalreceiver processes never exit, so the server gets permanently stuck ina half-shutdown state.Fujii Masao, with review, docs, and comment adjustments by me.1 parent2c0870f commit1c850fa
File tree
3 files changed
+42
-5
lines changed- doc/src/sgml
- ref
- src/backend/postmaster
3 files changed
+42
-5
lines changedLines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| |||
152 | 152 |
| |
153 | 153 |
| |
154 | 154 |
| |
| 155 | + | |
| 156 | + | |
155 | 157 |
| |
156 | 158 |
| |
157 | 159 |
| |
|
Lines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
| 1 | + | |
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| |||
1338 | 1338 |
| |
1339 | 1339 |
| |
1340 | 1340 |
| |
1341 |
| - | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
1342 | 1344 |
| |
1343 | 1345 |
| |
1344 | 1346 |
| |
|
Lines changed: 35 additions & 2 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 |
| |
| |||
278 | 278 |
| |
279 | 279 |
| |
280 | 280 |
| |
| 281 | + | |
281 | 282 |
| |
282 | 283 |
| |
283 | 284 |
| |
| |||
2173 | 2174 |
| |
2174 | 2175 |
| |
2175 | 2176 |
| |
2176 |
| - | |
| 2177 | + | |
| 2178 | + | |
| 2179 | + | |
| 2180 | + | |
| 2181 | + | |
| 2182 | + | |
| 2183 | + | |
| 2184 | + | |
| 2185 | + | |
| 2186 | + | |
| 2187 | + | |
2177 | 2188 |
| |
2178 | 2189 |
| |
2179 | 2190 |
| |
| |||
2209 | 2220 |
| |
2210 | 2221 |
| |
2211 | 2222 |
| |
| 2223 | + | |
2212 | 2224 |
| |
2213 | 2225 |
| |
2214 | 2226 |
| |
| |||
2771 | 2783 |
| |
2772 | 2784 |
| |
2773 | 2785 |
| |
| 2786 | + | |
2774 | 2787 |
| |
2775 | 2788 |
| |
2776 | 2789 |
| |
| |||
2846 | 2859 |
| |
2847 | 2860 |
| |
2848 | 2861 |
| |
| 2862 | + | |
| 2863 | + | |
| 2864 | + | |
| 2865 | + | |
| 2866 | + | |
| 2867 | + | |
| 2868 | + | |
| 2869 | + | |
| 2870 | + | |
| 2871 | + | |
| 2872 | + | |
| 2873 | + | |
| 2874 | + | |
| 2875 | + | |
| 2876 | + | |
| 2877 | + | |
| 2878 | + | |
| 2879 | + | |
| 2880 | + | |
| 2881 | + | |
2849 | 2882 |
| |
2850 | 2883 |
| |
2851 | 2884 |
| |
|
0 commit comments
Comments
(0)