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

Lines changed: 6 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy