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

Commit 93640d2

Browse files
committed
Remove implicit immediate restore target when none other is provided. All restore target should be explicit
1 parent f549245 commit 93640d2

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/restore.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -834,16 +834,6 @@ create_recovery_conf(time_t backup_id,
834834
if (rt->recovery_target_immediate)
835835
fprintf(fp, "recovery_target = 'immediate'\n");
836836

837-
/*
838-
* If 'backup_id' is provided and no other recovery target option is specified,
839-
* end recovery as soon as a consistent state is reached.
840-
*/
841-
if ((backup_id != 0) &&
842-
(!(rt->time_specified || rt->xid_specified || rt->recovery_target_name)))
843-
{
844-
fprintf(fp, "recovery_target = 'immediate'\n");
845-
}
846-
847837
if (rt->inclusive_specified)
848838
fprintf(fp, "recovery_target_inclusive = '%s'\n",
849839
rt->recovery_target_inclusive?"true":"false");

0 commit comments

Comments
 (0)