forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitcc0f6ff
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 parent07e3641 commitcc0f6ff
1 file changed
+9
-4
lines changedLines changed: 9 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2362 | 2362 |
| |
2363 | 2363 |
| |
2364 | 2364 |
| |
2365 |
| - | |
2366 |
| - | |
2367 |
| - | |
| 2365 | + | |
| 2366 | + | |
| 2367 | + | |
| 2368 | + | |
| 2369 | + | |
| 2370 | + | |
| 2371 | + | |
2368 | 2372 |
| |
2369 | 2373 |
| |
2370 | 2374 |
| |
2371 |
| - | |
| 2375 | + | |
| 2376 | + | |
2372 | 2377 |
| |
2373 | 2378 |
| |
2374 | 2379 |
| |
|
0 commit comments
Comments
(0)