Enable use of pg_rewind during switchover operations

But only if required and --force-rewind required, and pg_rewind
can actually be used.
This commit is contained in:
Ian Barwick
2017-08-09 12:09:37 +09:00
parent 2553839630
commit b1e544f962
6 changed files with 324 additions and 59 deletions

View File

@@ -94,6 +94,9 @@ typedef struct
bool archiver;
bool replication_lag;
/* "node join" options */
char config_files[MAXLEN];
/* "node service" options */
char action[MAXLEN];
bool check;
@@ -136,6 +139,8 @@ typedef struct
false, \
/* "node check" options */ \
false, false, \
/* "node join" options */ \
"", \
/* "node service" options */ \
"", false, false, false, \
/* "cluster event" options */ \