forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitac1d794
committed
Make idle backends exit if the postmaster dies.
Letting backends continue to run if the postmaster has exited preventsPostgreSQL from being restarted, which in many environments iscatastrophic. Worse, if some other backend crashes, we no longer haveany protection against shared memory corruption. So, arrange for themto exit instead. We don't want to expend many cycles on this, butincluding postmaster death in the set of things that we wait for whena backend is idle seems cheap enough.Rajeev Rastogi and Robert Haas1 parenta05dc4d commitac1d794
1 file changed
+31
-2
lines changedLines changed: 31 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
| 38 | + | |
38 | 39 |
| |
39 | 40 |
| |
40 | 41 |
| |
| |||
144 | 145 |
| |
145 | 146 |
| |
146 | 147 |
| |
147 |
| - | |
| 148 | + | |
148 | 149 |
| |
149 | 150 |
| |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
150 | 173 |
| |
151 | 174 |
| |
152 | 175 |
| |
| |||
223 | 246 |
| |
224 | 247 |
| |
225 | 248 |
| |
226 |
| - | |
| 249 | + | |
227 | 250 |
| |
228 | 251 |
| |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
229 | 258 |
| |
230 | 259 |
| |
231 | 260 |
| |
|
0 commit comments
Comments
(0)