Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit79d2b9d

Browse files
committed
Name the backup by its ID
1 parentda79091 commit79d2b9d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

‎src/restore.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ do_restore_or_validate(InstanceState *instanceState, time_t target_backup_id, pg
131131
boolcleanup_pgdata= false;
132132
boolbackup_has_tblspc= true;/* backup contain tablespace */
133133
XLogRecPtrshift_lsn=InvalidXLogRecPtr;
134-
chartimestamp[100];
135134

136135
if (instanceState==NULL)
137136
elog(ERROR,"Required parameter not specified: --instance");
@@ -688,11 +687,10 @@ do_restore_or_validate(InstanceState *instanceState, time_t target_backup_id, pg
688687
backup_id_of(dest_backup),
689688
dest_backup->server_version);
690689

691-
time2iso(timestamp,lengthof(timestamp),dest_backup->start_time, false);
692690
if (instance_config.remote.host)
693-
elog(INFO,"Restoring the database fromthebackupstarting 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);
694692
else
695-
elog(INFO,"Restoring the database fromthebackupstarting at%s",timestamp);
693+
elog(INFO,"Restoring the database from backup %s",backup_id_of(dest_backup));
696694

697695
restore_chain(dest_backup,parent_chain,dbOid_exclude_list,params,
698696
instance_config.pgdata,no_sync,cleanup_pgdata,backup_has_tblspc);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp