honot the special value 'none' for restore_command

This commit is contained in:
Grigory Smolkin
2019-10-11 15:47:35 +03:00
parent bd5226cf5a
commit 4a5a9efe01
+2 -1
View File
@@ -871,7 +871,8 @@ create_recovery_conf(time_t backup_id,
char restore_command_guc[16384];
/* If restore_command is provided, use it */
if (instance_config.restore_command)
if (instance_config.restore_command &&
(pg_strcasecmp(instance_config.restore_command, "none") != 0))
sprintf(restore_command_guc, "%s", instance_config.restore_command);
else
{