forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbaf111d
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 parent5833306 commitbaf111d
1 file changed
+19
-5
lines changedLines changed: 19 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4220 | 4220 |
| |
4221 | 4221 |
| |
4222 | 4222 |
| |
4223 |
| - | |
| 4223 | + | |
| 4224 | + | |
4224 | 4225 |
| |
4225 | 4226 |
| |
4226 | 4227 |
| |
| |||
4236 | 4237 |
| |
4237 | 4238 |
| |
4238 | 4239 |
| |
4239 |
| - | |
| 4240 | + | |
| 4241 | + | |
4240 | 4242 |
| |
4241 | 4243 |
| |
4242 | 4244 |
| |
| |||
4327 | 4329 |
| |
4328 | 4330 |
| |
4329 | 4331 |
| |
4330 |
| - | |
| 4332 | + | |
| 4333 | + | |
4331 | 4334 |
| |
4332 | 4335 |
| |
4333 | 4336 |
| |
| |||
4346 | 4349 |
| |
4347 | 4350 |
| |
4348 | 4351 |
| |
4349 |
| - | |
| 4352 | + | |
| 4353 | + | |
4350 | 4354 |
| |
4351 | 4355 |
| |
4352 | 4356 |
| |
| 4357 | + | |
| 4358 | + | |
| 4359 | + | |
| 4360 | + | |
| 4361 | + | |
| 4362 | + | |
| 4363 | + | |
| 4364 | + | |
| 4365 | + | |
4353 | 4366 |
| |
4354 | 4367 |
| |
4355 | 4368 |
| |
| |||
4366 | 4379 |
| |
4367 | 4380 |
| |
4368 | 4381 |
| |
4369 |
| - | |
| 4382 | + | |
| 4383 | + | |
4370 | 4384 |
| |
4371 | 4385 |
| |
4372 | 4386 |
| |
|
0 commit comments
Comments
(0)