Initial code for standby clone

This commit is contained in:
Ian Barwick
2017-04-27 09:22:09 +09:00
parent bcf55b4f72
commit 99e7bb0ea3
6 changed files with 188 additions and 30 deletions

View File

@@ -70,9 +70,10 @@ static struct option long_options[] =
{"pg_bindir", required_argument, NULL, 'b'},
/* connection options */
{"host", required_argument, NULL, 'h'},
{"remote-user", required_argument, NULL, 'R'},
{"superuser", required_argument, NULL, 'S'},
/* node options */
{"pgdata", required_argument, NULL, 'D'},
/* legacy alias for -D/--pgdata*/
@@ -86,6 +87,10 @@ static struct option long_options[] =
{"terse", required_argument, NULL, 't'},
{"verbose", no_argument, NULL, 'v'},
/* standby clone options */
{"rsync-only", no_argument, NULL, 'r'},
{"without-barman", no_argument, NULL, OPT_WITHOUT_BARMAN},
/* event options */
{"event", required_argument, NULL, OPT_EVENT },
{"limit", required_argument, NULL, OPT_LIMIT },
@@ -93,10 +98,8 @@ static struct option long_options[] =
/* not yet handled */
{"dbname", required_argument, NULL, 'd'},
{"host", required_argument, NULL, 'h'},
{"port", required_argument, NULL, 'p'},
{"username", required_argument, NULL, 'U'},
{"remote-user", required_argument, NULL, 'R'},
{"wal-keep-segments", required_argument, NULL, 'w'},
{"keep-history", required_argument, NULL, 'k'},
{"wait", no_argument, NULL, 'W'},
@@ -125,21 +128,6 @@ static struct option long_options[] =
#define T_RUNTIME_OPTIONS_INITIALIZER { \
/* configuration metadata */ \
false, false, false, false, \
/* general configuration options */ \
"", false, "", \
/* logging options */ \
"", false, false, false, \
/* connection options */ \
"", \
/* node options */ \
UNKNOWN_NODE_ID, "", "", \
/* event options */ \
"", 20, false}
static void do_help(void);
static void do_standby_clone(void);