Skip to content

Commit 79d2b9d

Browse files
committed
Name the backup by its ID
1 parent da79091 commit 79d2b9d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Diff for: src/restore.c

+2-4
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
bool cleanup_pgdata = false;
132132
bool backup_has_tblspc = true; /* backup contain tablespace */
133133
XLogRecPtr shift_lsn = InvalidXLogRecPtr;
134-
char timestamp[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 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);
694692
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));
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)