support pg_basebackup restore

This commit is contained in:
wangyao 2023-05-15 08:33:32 +00:00 committed by Gitee
commit 363fbeb6ff
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -9011,12 +9011,14 @@ void StartupXLOG(void)
if (backupFromStandby)
{
/*
if (dbstate_at_startup != DB_IN_ARCHIVE_RECOVERY &&
dbstate_at_startup != DB_SHUTDOWNED_IN_RECOVERY)
ereport(FATAL,
(errmsg("backup_label contains data inconsistent with control file"),
errhint("This means that the backup is corrupted and you will "
"have to use another backup for recovery.")));
*/
ControlFile->backupEndPoint = ControlFile->minRecoveryPoint;
}
}