Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 5e37fc6

Browse files
committed
Fix wrong searching full backup if we set ID and --time/--xid.
1 parent 133573e commit 5e37fc6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

restore.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ do_restore(time_t backup_id,
143143
satisfy_recovery_target(base_backup, rt) &&
144144
(backup_id_found || backup_id == 0))
145145
goto base_backup_found;
146+
else
147+
backup_id_found = false;
146148
}
147149
/* no full backup found, cannot restore */
148150
elog(ERROR, "no full backup found, cannot restore.");

0 commit comments

Comments
 (0)