Merge 4968735b73 into 1af4c50ed0
This commit is contained in:
commit
9b16d89592
|
|
@ -101,12 +101,16 @@ func (c *Cluster) pgConnectionString(dbname string) string {
|
||||||
dbname = "postgres"
|
dbname = "postgres"
|
||||||
}
|
}
|
||||||
|
|
||||||
return fmt.Sprintf("host='%s' dbname='%s' sslmode=require user='%s' password='%s' connect_timeout='%d'",
|
// TODO add global config option for this
|
||||||
|
var options = "-c log_statement=all"
|
||||||
|
|
||||||
|
return fmt.Sprintf("host='%s' dbname='%s' sslmode=require user='%s' password='%s' connect_timeout='%d' options='%s'",
|
||||||
fmt.Sprintf("%s.%s.svc.%s", c.Name, c.Namespace, c.OpConfig.ClusterDomain),
|
fmt.Sprintf("%s.%s.svc.%s", c.Name, c.Namespace, c.OpConfig.ClusterDomain),
|
||||||
dbname,
|
dbname,
|
||||||
c.systemUsers[constants.SuperuserKeyName].Name,
|
c.systemUsers[constants.SuperuserKeyName].Name,
|
||||||
strings.Replace(password, "$", "\\$", -1),
|
strings.Replace(password, "$", "\\$", -1),
|
||||||
constants.PostgresConnectTimeout/time.Second)
|
constants.PostgresConnectTimeout/time.Second,
|
||||||
|
options)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Cluster) databaseAccessDisabled() bool {
|
func (c *Cluster) databaseAccessDisabled() bool {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue