repmgr: initial runtime option parsing and root execution detection

This commit is contained in:
Ian Barwick
2017-04-19 23:16:36 +09:00
parent 1631917715
commit 76e8c4624e
5 changed files with 69 additions and 2 deletions

View File

@@ -104,6 +104,17 @@ static struct option long_options[] =
{NULL, 0, NULL, 0}
};
typedef struct
{
/* general repmgr options */
char config_file[MAXPGPATH];
} t_runtime_options;
#define T_RUNTIME_OPTIONS_INITIALIZER { \
/* general repmgr options */ \
""}
static void do_help(void);
#endif