We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 186fb72 commit 196d4faCopy full SHA for 196d4fa
src/restore.c
@@ -1379,6 +1379,16 @@ update_recovery_options_before_v12(pgBackup *backup,
1379
FILE *fp;
1380
char path[MAXPGPATH];
1381
1382
+ /*
1383
+ * If PITR is not requested and instance is not restored as replica,
1384
+ * then recovery.conf should not be created.
1385
+ */
1386
+ if (params->recovery_settings_mode != PITR_REQUESTED &&
1387
+ !params->restore_as_replica)
1388
+ {
1389
+ return;
1390
+ }
1391
+
1392
elog(LOG, "update recovery settings in recovery.conf");
1393
snprintf(path, lengthof(path), "%s/recovery.conf", instance_config.pgdata);
1394
0 commit comments