mirror of
https://github.com/postgres/postgres.git
synced 2025-04-25 21:42:33 +03:00
Improve error message when WAL ends before reaching end of online backup.
This commit is contained in:
parent
da3418cea9
commit
1f0bab8494
@ -6616,7 +6616,12 @@ StartupXLOG(void)
|
|||||||
if (reachedStopPoint) /* stopped because of stop request */
|
if (reachedStopPoint) /* stopped because of stop request */
|
||||||
ereport(FATAL,
|
ereport(FATAL,
|
||||||
(errmsg("requested recovery stop point is before consistent recovery point")));
|
(errmsg("requested recovery stop point is before consistent recovery point")));
|
||||||
else /* ran off end of WAL */
|
/* ran off end of WAL */
|
||||||
|
if (!XLogRecPtrIsInvalid(ControlFile->backupStartPoint))
|
||||||
|
ereport(FATAL,
|
||||||
|
(errmsg("WAL ends before end of online backup"),
|
||||||
|
errhint("Online backup started with pg_start_backup() must be ended with pg_stop_backup(), and all WAL up to that point must be available at recovery.")));
|
||||||
|
else
|
||||||
ereport(FATAL,
|
ereport(FATAL,
|
||||||
(errmsg("WAL ends before consistent recovery point")));
|
(errmsg("WAL ends before consistent recovery point")));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user