Add configuration file "passfile"

This will enable a custom .pgpass to be included in "primary_conninfo"
(provided it's supported by the libpq version on the standby).
This commit is contained in:
Ian Barwick
2017-11-14 19:30:25 +09:00
parent aa28069d8b
commit eb14bb58c6
6 changed files with 46 additions and 3 deletions

View File

@@ -90,6 +90,7 @@ typedef struct
char recovery_min_apply_delay[MAXLEN];
bool recovery_min_apply_delay_provided;
bool use_primary_conninfo_password;
char passfile[MAXPGPATH];
/* node check settings */
int archive_ready_warning;
@@ -153,7 +154,7 @@ typedef struct
/* log settings */ \
"", "", "", DEFAULT_LOG_STATUS_INTERVAL, \
/* standby action settings */ \
false, "", "", { NULL, NULL }, "", false, false, \
false, "", "", { NULL, NULL }, "", false, false, "", \
/* node check settings */ \
DEFAULT_ARCHIVE_READY_WARNING, DEFAULT_ARCHIVE_READY_CRITICAL, \
DEFAULT_REPLICATION_LAG_WARNING, DEFAULT_REPLICATION_LAG_CRITICAL, \