mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-09 23:36:39 +02:00
trigger lookup only if pooler is set
This commit is contained in:
+4
-2
@@ -760,8 +760,10 @@ func (c *Cluster) syncDatabases() error {
|
||||
|
||||
if len(createDatabases) > 0 {
|
||||
// trigger creation of pooler objects in new database in syncConnectionPooler
|
||||
for _, role := range [2]PostgresRole{Master, Replica} {
|
||||
c.ConnectionPooler[role].LookupFunction = false
|
||||
if c.ConnectionPooler != nil {
|
||||
for _, role := range [2]PostgresRole{Master, Replica} {
|
||||
c.ConnectionPooler[role].LookupFunction = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user