@@ -131,7 +131,6 @@ do_restore_or_validate(InstanceState *instanceState, time_t target_backup_id, pg
131
131
bool cleanup_pgdata = false;
132
132
bool backup_has_tblspc = true; /* backup contain tablespace */
133
133
XLogRecPtr shift_lsn = InvalidXLogRecPtr ;
134
- char timestamp [100 ];
135
134
136
135
if (instanceState == NULL )
137
136
elog (ERROR , "Required parameter not specified: --instance" );
@@ -688,11 +687,10 @@ do_restore_or_validate(InstanceState *instanceState, time_t target_backup_id, pg
688
687
backup_id_of (dest_backup ),
689
688
dest_backup -> server_version );
690
689
691
- time2iso (timestamp , lengthof (timestamp ), dest_backup -> start_time , false);
692
690
if (instance_config .remote .host )
693
- elog (INFO , "Restoring the database from the backup starting at %s on %s" , timestamp , instance_config .remote .host );
691
+ elog (INFO , "Restoring the database from backup %s on %s" , backup_id_of ( dest_backup ) , instance_config .remote .host );
694
692
else
695
- elog (INFO , "Restoring the database from the backup starting at %s" , timestamp );
693
+ elog (INFO , "Restoring the database from backup %s" , backup_id_of ( dest_backup ) );
696
694
697
695
restore_chain (dest_backup , parent_chain , dbOid_exclude_list , params ,
698
696
instance_config .pgdata , no_sync , cleanup_pgdata , backup_has_tblspc );
0 commit comments