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

Appearance settings

Commit 79d2b9d

Browse filesBrowse files
committed
Name the backup by its ID
1 parent da79091 commit 79d2b9d
Copy full SHA for 79d2b9d

File tree

1 file changed

+2
-4
lines changed
Filter options

1 file changed

+2
-4
lines changed

‎src/restore.c

Copy file name to clipboardExpand all lines: src/restore.c
+2-4Lines 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
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.