mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-25 16:16:29 +00:00
"standby clone": add --recovery-conf-only option
This will generate "recovery.conf" for an existing standby. Typical use-case is a standby cloned manually from an external data source (e.g. Barman), where "recovery.conf" needs to be created (and if required a replication slot). The --dry-run option will check the pre-requisites but not actually create "recovery.conf" or a replication slot. This requires that the upstream node is running, a replication connection can be made and if required a replication slot can be created. Implements GitHub #382.
This commit is contained in:
@@ -80,6 +80,7 @@ typedef struct
|
||||
char replication_user[MAXLEN];
|
||||
char upstream_conninfo[MAXLEN];
|
||||
bool without_barman;
|
||||
bool recovery_conf_only;
|
||||
|
||||
/* "standby clone"/"standby follow" options */
|
||||
int upstream_node_id;
|
||||
@@ -138,14 +139,14 @@ typedef struct
|
||||
/* output options */ \
|
||||
false, false, false, \
|
||||
/* database connection options */ \
|
||||
"", "", "", "", \
|
||||
"", "", "", "", \
|
||||
/* other connection options */ \
|
||||
"", "", \
|
||||
"", "", \
|
||||
/* general node options */ \
|
||||
UNKNOWN_NODE_ID, "", "", UNKNOWN_NODE_ID, \
|
||||
/* "standby clone" options */ \
|
||||
false, CONFIG_FILE_SAMEPATH, false, false, false, "", "", "", \
|
||||
false, \
|
||||
false, false, \
|
||||
/* "standby clone"/"standby follow" options */ \
|
||||
NO_UPSTREAM_NODE, \
|
||||
/* "standby register" options */ \
|
||||
@@ -164,7 +165,7 @@ typedef struct
|
||||
false, "", CLUSTER_EVENT_LIMIT, \
|
||||
/* "cluster cleanup" options */ \
|
||||
0, \
|
||||
/* Following options for internal use */ \
|
||||
/* following options for internal use */ \
|
||||
"/tmp", OM_TEXT \
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user