Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 1f0bab8

Browse files
committed
Improve error message when WAL ends before reaching end of online backup.
1 parent da3418c commit 1f0bab8

File tree

1 file changed

+6
-1
lines changed
  • src/backend/access/transam

1 file changed

+6
-1
lines changed

src/backend/access/transam/xlog.c

+6-1
Original file line numberDiff line numberDiff line change
@@ -6616,7 +6616,12 @@ StartupXLOG(void)
66166616
if (reachedStopPoint) /* stopped because of stop request */
66176617
ereport(FATAL,
66186618
(errmsg("requested recovery stop point is before consistent recovery point")));
6619-
else /* ran off end of WAL */
6619+
/* ran off end of WAL */
6620+
if (!XLogRecPtrIsInvalid(ControlFile->backupStartPoint))
6621+
ereport(FATAL,
6622+
(errmsg("WAL ends before end of online backup"),
6623+
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.")));
6624+
else
66206625
ereport(FATAL,
66216626
(errmsg("WAL ends before consistent recovery point")));
66226627
}

0 commit comments

Comments
 (0)