forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit442231d
committed
Fix postmaster to attempt restart after a hot-standby crash.
The postmaster was coded to treat any unexpected exit of the startupprocess (i.e., the WAL replay process) as a catastrophic crash, and not tryto restart it. This was OK so long as the startup process could not haveany sibling postmaster children. However, if a hot-standby backendcrashes, we SIGQUIT the startup process along with everything else, and theresulting exit is hardly "unexpected". Treating it as such meant we failedto restart a standby server after any child crash at all, not only a crashof the WAL replay process as intended. Adjust that. Back-patch to 9.0where hot standby was introduced.1 parent0ee23b5 commit442231d
1 file changed
+9
-4
lines changedLines changed: 9 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2311 | 2311 |
| |
2312 | 2312 |
| |
2313 | 2313 |
| |
2314 |
| - | |
2315 |
| - | |
2316 |
| - | |
| 2314 | + | |
| 2315 | + | |
| 2316 | + | |
| 2317 | + | |
| 2318 | + | |
| 2319 | + | |
| 2320 | + | |
2317 | 2321 |
| |
2318 | 2322 |
| |
2319 | 2323 |
| |
2320 |
| - | |
| 2324 | + | |
| 2325 | + | |
2321 | 2326 |
| |
2322 | 2327 |
| |
2323 | 2328 |
| |
|
0 commit comments
Comments
(0)