Add configuration file setting "use_primary_conninfo_password"

If, for whatever reason, the upstream server password needs to be set
in "primary_conninfo", enable it to be extracted from $PGPASSWORD.
This commit is contained in:
Ian Barwick
2017-08-31 14:57:07 +09:00
parent 677cd9073a
commit 0e0b221507
8 changed files with 45 additions and 28 deletions

View File

@@ -68,7 +68,7 @@ typedef struct
char log_file[MAXLEN];
int log_status_interval;
/* standby clone settings */
/* standby action settings */
bool use_replication_slots;
char rsync_options[MAXLEN];
char ssh_options[MAXLEN];
@@ -76,6 +76,7 @@ typedef struct
char restore_command[MAXLEN];
TablespaceList tablespace_mapping;
char recovery_min_apply_delay[MAXLEN];
bool use_primary_conninfo_password;
/* node check settings */
int archive_ready_warning;
@@ -134,8 +135,8 @@ typedef struct
UNKNOWN_NODE_ID, "", "", "", "", "", REPLICATION_TYPE_PHYSICAL, \
/* log settings */ \
"", "", "", DEFAULT_LOG_STATUS_INTERVAL, \
/* standby clone settings */ \
false, "", "", "", "", { NULL, NULL }, "", \
/* standby action settings */ \
false, "", "", "", "", { NULL, NULL }, "", false, \
/* node check settings */ \
DEFAULT_ARCHIVE_READY_WARNING, DEFAULT_ARCHIVE_READY_CRITICAL, \
DEFAULT_REPLICATION_LAG_WARNING, DEFAULT_REPLICATION_LAG_CRITICAL, \