- Notifications
You must be signed in to change notification settings - Fork5
Commitc40bb11
committed
Prevent starting a standalone backend with standby_mode on.
This can't really work because standby_mode expects there to be moreWAL arriving, which there will not ever be because there's no WALreceiver process to fetch it. Moreover, if standby_mode is on thenhot standby might also be turned on, causing even more strangenessbecause that expects read-only sessions to be executing in parallel.Bernd Helmle reported a case where btree_xlog_delete_get_latestRemovedXidgot confused, but rather than band-aiding individual problems it seemsbest to prevent getting anywhere near this state in the first place.Back-patch to all supported branches.In passing, also fix some omissions of errcodes in other ereport's inreadRecoveryCommandFile().Michael Paquier (errcode hacking by me)Discussion: <00F0B2CEF6D0CEF8A90119D4@eje.credativ.lan>1 parent3aa233f commitc40bb11
1 file changed
+19
-5
lines changedLines changed: 19 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4980 | 4980 |
| |
4981 | 4981 |
| |
4982 | 4982 |
| |
4983 |
| - | |
| 4983 | + | |
| 4984 | + | |
4984 | 4985 |
| |
4985 | 4986 |
| |
4986 | 4987 |
| |
| |||
4996 | 4997 |
| |
4997 | 4998 |
| |
4998 | 4999 |
| |
4999 |
| - | |
| 5000 | + | |
| 5001 | + | |
5000 | 5002 |
| |
5001 | 5003 |
| |
5002 | 5004 |
| |
| |||
5111 | 5113 |
| |
5112 | 5114 |
| |
5113 | 5115 |
| |
5114 |
| - | |
| 5116 | + | |
| 5117 | + | |
5115 | 5118 |
| |
5116 | 5119 |
| |
5117 | 5120 |
| |
| |||
5130 | 5133 |
| |
5131 | 5134 |
| |
5132 | 5135 |
| |
5133 |
| - | |
| 5136 | + | |
| 5137 | + | |
5134 | 5138 |
| |
5135 | 5139 |
| |
5136 | 5140 |
| |
| |||
5144 | 5148 |
| |
5145 | 5149 |
| |
5146 | 5150 |
| |
| 5151 | + | |
| 5152 | + | |
| 5153 | + | |
| 5154 | + | |
| 5155 | + | |
| 5156 | + | |
| 5157 | + | |
| 5158 | + | |
| 5159 | + | |
5147 | 5160 |
| |
5148 | 5161 |
| |
5149 | 5162 |
| |
| |||
5160 | 5173 |
| |
5161 | 5174 |
| |
5162 | 5175 |
| |
5163 |
| - | |
| 5176 | + | |
| 5177 | + | |
5164 | 5178 |
| |
5165 | 5179 |
| |
5166 | 5180 |
| |
|
0 commit comments
Comments
(0)