mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 08:36:30 +00:00
Improve pg_bindir parameter handling
Previously, the pg_bindir parameter was mandatory and could only be provided in the repmgr.conf file, which was leading to the slightly bizarre situation that e.g. for "clone standby", repmgr was complaining that it didn't want the configuration file when it actually did. pg_bindir is now optional - if not provided, it will use the default path. It can be provided in the repmgr.conf file, or as a command line parameter; the latter overrides the former.
This commit is contained in:
6
repmgr.h
6
repmgr.h
@@ -86,10 +86,12 @@ typedef struct
|
||||
/* parameter used by CLUSTER CLEANUP */
|
||||
int keep_history;
|
||||
|
||||
char min_recovery_apply_delay[MAXLEN];
|
||||
char pg_bindir[MAXLEN];
|
||||
|
||||
char min_recovery_apply_delay[MAXLEN];
|
||||
} t_runtime_options;
|
||||
|
||||
#define T_RUNTIME_OPTIONS_INITIALIZER { "", "", "", "", "", "", "", DEFAULT_WAL_KEEP_SEGMENTS, false, false, false, false, false, "", "", 0, "" }
|
||||
#define T_RUNTIME_OPTIONS_INITIALIZER { "", "", "", "", "", "", "", DEFAULT_WAL_KEEP_SEGMENTS, false, false, false, false, false, "", "", 0, "", "" }
|
||||
|
||||
extern char repmgr_schema[MAXLEN];
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user