Fix recovery_min_apply_delay handling

- rename --min-recovery-apply-delay to --recovery-min-apply-delay
- ensure server version is 9.4 or later before writing
  recovery_min_apply_delay to recovery.conf.

This fixes changes introduced in 653e11c2a7
(the parameter was subsequently renamed).

Also reallocate the '-r' parameter to --rsync-only, which is probably
more useful.
This commit is contained in:
Ian Barwick
2015-03-23 17:50:51 +09:00
parent 6f61c8285b
commit 98df2a5891
2 changed files with 52 additions and 31 deletions

View File

@@ -90,7 +90,7 @@ typedef struct
char pg_bindir[MAXLEN];
char min_recovery_apply_delay[MAXLEN];
char recovery_min_apply_delay[MAXLEN];
} t_runtime_options;
#define T_RUNTIME_OPTIONS_INITIALIZER { "", "", "", "", "", "", "", DEFAULT_WAL_KEEP_SEGMENTS, false, false, false, false, false, false, false, false, "", "", 0, "", "" }