Rename "pg_restore_command" to "restore_command"

The 'pg_' prefix could cause confusion with actual binaries
(pg_ctl, pg_basebackup etc.) and there's no obvious reason
why we need it.
This commit is contained in:
Ian Barwick
2016-06-17 14:43:02 +09:00
parent 1ade1acb22
commit 3d6c349d88
4 changed files with 8 additions and 8 deletions

View File

@@ -4265,11 +4265,11 @@ create_recovery_file(const char *data_dir)
log_debug(_("recovery.conf: %s"), line);
}
/* If pg_restore_command is set, we use it as restore_command in recovery.conf */
if (strcmp(options.pg_restore_command, "") != 0)
/* If restore_command is set, we use it as restore_command in recovery.conf */
if (strcmp(options.restore_command, "") != 0)
{
maxlen_snprintf(line, "restore_command = '%s'\n",
options.pg_restore_command);
options.restore_command);
if (write_recovery_file_line(recovery_file, recovery_file_path, line) == false)
return false;
log_debug(_("recovery.conf: %s"), line);