forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitef19c9d
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 parentc74ad4e commitef19c9d
1 file changed
+9
-4
lines changedLines changed: 9 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2391 | 2391 |
| |
2392 | 2392 |
| |
2393 | 2393 |
| |
2394 |
| - | |
2395 |
| - | |
2396 |
| - | |
| 2394 | + | |
| 2395 | + | |
| 2396 | + | |
| 2397 | + | |
| 2398 | + | |
| 2399 | + | |
| 2400 | + | |
2397 | 2401 |
| |
2398 | 2402 |
| |
2399 | 2403 |
| |
2400 |
| - | |
| 2404 | + | |
| 2405 | + | |
2401 | 2406 |
| |
2402 | 2407 |
| |
2403 | 2408 |
| |
|
0 commit comments
Comments
(0)