You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
If backup-end record is not seen, and we reach end of recovery from a
streamed backup, throw an error and refuse to start up. The restore has notfinished correctly in that case and the data directory is possibly corrupt.We already errored out in case of archive recovery, but could not duringcrash recovery because we couldn't distinguish between the case thatpg_start_backup() was called and the database then crashed (must not error,data is OK), and the case that we're restoring from a backup and not allthe needed WAL was replayed (data can be corrupt).To distinguish those cases, add a line to backup_label to indicatewhether the backup was taken with pg_start/stop_backup(), or by streaming(ie. pg_basebackup).This requires re-initdb, because of a new field added to the control file.
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.")));