mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-25 16:16:29 +00:00
Initial code for standby clone
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user