repmgr: parse --no-slot in pg_basebackup_options

From PostgreSQL 10 we'll need to know whether this is present when
performing sanity checks for available replication slots.

Add a sanity check for conflicting presence of -S/--slot while we're
at it so we can abort early.
This commit is contained in:
Ian Barwick
2017-03-07 11:04:18 +09:00
parent c407475057
commit ba42794bcb
2 changed files with 60 additions and 9 deletions

View File

@@ -193,9 +193,10 @@ typedef struct
{
char slot[MAXLEN];
char xlog_method[MAXLEN];
bool no_slot; /* from PostgreSQL 10 */
} t_basebackup_options;
#define T_BASEBACKUP_OPTIONS_INITIALIZER { "", "" }
#define T_BASEBACKUP_OPTIONS_INITIALIZER { "", "", false }
typedef struct
{