Initial implementation of "repmgr master unregister"

Also adds "--dry-run" option
This commit is contained in:
Ian Barwick
2017-06-10 23:21:46 +09:00
parent ac9ccce3ef
commit fef184ce9a
6 changed files with 221 additions and 49 deletions

View File

@@ -23,6 +23,7 @@ typedef struct
/* general configuration options */
char config_file[MAXPGPATH];
bool dry_run;
bool force;
char pg_bindir[MAXLEN]; /* overrides setting in repmgr.conf */
@@ -75,7 +76,7 @@ typedef struct
/* configuration metadata */ \
false, false, false, false, false, \
/* general configuration options */ \
"", false, "", \
"", false, false, "", \
/* logging options */ \
"", false, false, false, \
/* database connection options */ \