diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2011-03-31 10:09:49 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2011-03-31 10:09:49 +0300 |
commit | 1f0bab8494f7734e26b76fe34599c7763c8753a1 (patch) | |
tree | f89ac8b0d332064f0ec2d9ea6658f63614a2df92 /src/backend/access/transam/xlog.c | |
parent | da3418cea9bd10e9ea3489b42f6278772942e745 (diff) | |
download | postgresql-1f0bab8494f7734e26b76fe34599c7763c8753a1.tar.gz postgresql-1f0bab8494f7734e26b76fe34599c7763c8753a1.zip |
Improve error message when WAL ends before reaching end of online backup.
Diffstat (limited to 'src/backend/access/transam/xlog.c')
-rw-r--r-- | src/backend/access/transam/xlog.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index c255691918d..b22e498f8b5 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -6616,7 +6616,12 @@ StartupXLOG(void) if (reachedStopPoint) /* stopped because of stop request */ ereport(FATAL, (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, (errmsg("WAL ends before consistent recovery point"))); } |