We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffbcb70 commit 78bfba8Copy full SHA for 78bfba8
pkg/cluster/sync.go
@@ -661,6 +661,9 @@ func (c *Cluster) syncDatabases() error {
661
662
// set default privileges for prepared database
663
for _, preparedDatabase := range preparedDatabases {
664
+ if err := c.initDbConnWithName(preparedDatabase); err != nil {
665
+ return fmt.Errorf("could not init database connection to %s", preparedDatabase)
666
+ }
667
if err = c.execAlterGlobalDefaultPrivileges(preparedDatabase+constants.OwnerRoleNameSuffix, preparedDatabase); err != nil {
668
return err
669
}
0 commit comments