Commit b023650
committed
Improve the message logged when recovery is paused.
When recovery target is reached and recovery is paused because of
recovery_target_action=pause, executing pg_wal_replay_resume() causes
the standby to promote, i.e., the recovery to end. So, in this case,
the previous message "Execute pg_wal_replay_resume() to continue"
logged was confusing because pg_wal_replay_resume() doesn't cause
the recovery to continue.
This commit improves the message logged when recovery is paused,
and the proper message is output based on what (pg_wal_replay_pause
or recovery_target_action) causes recovery to be paused.
Author: Sergei Kornilov, revised by Fujii Masao
Reviewed-by: Robert Haas
Discussion: https://postgr.es/m/19168211580382043@myt5-b646bde4b8f3.qloud-c.yandex.net1 parent 051fd5e commit b023650
1 file changed
+17
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
885 | 885 | | |
886 | 886 | | |
887 | 887 | | |
888 | | - | |
| 888 | + | |
889 | 889 | | |
890 | 890 | | |
891 | 891 | | |
| |||
5951 | 5951 | | |
5952 | 5952 | | |
5953 | 5953 | | |
| 5954 | + | |
| 5955 | + | |
| 5956 | + | |
| 5957 | + | |
5954 | 5958 | | |
5955 | 5959 | | |
5956 | 5960 | | |
5957 | 5961 | | |
5958 | 5962 | | |
5959 | | - | |
| 5963 | + | |
5960 | 5964 | | |
5961 | 5965 | | |
5962 | 5966 | | |
| |||
5966 | 5970 | | |
5967 | 5971 | | |
5968 | 5972 | | |
5969 | | - | |
5970 | | - | |
5971 | | - | |
| 5973 | + | |
| 5974 | + | |
| 5975 | + | |
| 5976 | + | |
| 5977 | + | |
| 5978 | + | |
| 5979 | + | |
| 5980 | + | |
5972 | 5981 | | |
5973 | 5982 | | |
5974 | 5983 | | |
| |||
7201 | 7210 | | |
7202 | 7211 | | |
7203 | 7212 | | |
7204 | | - | |
| 7213 | + | |
7205 | 7214 | | |
7206 | 7215 | | |
7207 | 7216 | | |
| |||
7226 | 7235 | | |
7227 | 7236 | | |
7228 | 7237 | | |
7229 | | - | |
| 7238 | + | |
7230 | 7239 | | |
7231 | 7240 | | |
7232 | 7241 | | |
| |||
7400 | 7409 | | |
7401 | 7410 | | |
7402 | 7411 | | |
7403 | | - | |
| 7412 | + | |
7404 | 7413 | | |
7405 | 7414 | | |
7406 | 7415 | | |
| |||
0 commit comments