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
committed by Ian Barwick
parent e53f1bf844
commit 5493b57443
2 changed files with 60 additions and 9 deletions

View File

@@ -192,9 +192,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
{