We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent8dea09c commitff61f80Copy full SHA for ff61f80
restore.c
@@ -691,7 +691,14 @@ create_recovery_conf(time_t backup_id,
691
fprintf(fp,"recovery_target_xid = '%s'\n",target_xid);
692
elseif (backup_id!=0)
693
{
694
-/* TODO Why does it depend on backup_id? */
+/*
695
+ * We need to set this parameters only if 'backup_id' is provided
696
+ * because the backup will be recovered as soon as possible as stop_lsn
697
+ * is reached.
698
+ * If 'backup_id' is not set we want to replay all available WAL records,
699
+ * if 'recovery_target' is set all available WAL records will not be
700
+ * replayed.
701
+ */
702
fprintf(fp,"recovery_target = 'immediate'\n");
703
fprintf(fp,"recovery_target_action = 'promote'\n");
704
}