forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit85d0e66
committed
Make recovery_target_action = pause work.
Previously even if recovery_target_action was set to pause andthe recovery target was reached, the recovery could never be paused.Because the setting of pause was *always* overridden with that ofshutdown unexpectedly. This override is valid and intentionalif hot_standby is not enabled because there is no way to resumethe paused recovery in this case and the setting of pause iscompletely useless. But not if hot_standby is enabled.This patch changes the code so that the setting of pause is overriddenwith that of shutdown only when hot_standby is not enabled.Bug reported by Andres Freund1 parenta6a66bd commit85d0e66
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5141 | 5141 |
| |
5142 | 5142 |
| |
5143 | 5143 |
| |
5144 |
| - | |
5145 |
| - | |
| 5144 | + | |
| 5145 | + | |
5146 | 5146 |
| |
5147 | 5147 |
| |
5148 | 5148 |
| |
|
0 commit comments
Comments
(0)