Store configuration file in repmgr.nodes table

When executing repmgr on remote nodes, we otherwise end up jumping
through hoops as we can't make assumptions about where the configuration
file is located, but really need to be able to provide it.

From a support point of view it will also make life easier as it will
be easy to specify exactly which file to provide.
This commit is contained in:
Ian Barwick
2017-08-10 08:03:24 +09:00
parent a57fb5b50c
commit 1d99a07b43
6 changed files with 17 additions and 10 deletions

View File

@@ -11,7 +11,7 @@
#include "log.h"
const static char *_progname = NULL;
static char config_file_path[MAXPGPATH];
char config_file_path[MAXPGPATH] = "";
static bool config_file_provided = false;
bool config_file_found = false;