support pg_basebackup restore

This commit is contained in:
peitingwei 2023-05-15 16:11:08 +08:00
parent e5bfda549f
commit 220cc8c710

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;
}
}