mirror of
https://gitee.com/he3db/he3pg.git
synced 2024-12-02 12:17:34 +08:00
support pg_basebackup restore
This commit is contained in:
commit
363fbeb6ff
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user