We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16e02d3 commit 95930dbCopy full SHA for 95930db
internal/postgres/users.go
@@ -166,7 +166,7 @@ SELECT pg_catalog.format('GRANT ALL PRIVILEGES ON DATABASE %I TO %I',
166
// The operator will attempt to write schemas for the users in the spec if
167
// * the feature gate is enabled and
168
// * the cluster is annotated.
169
- if feature.Enabled(ctx, feature.AutoCreateUserSchema) {
+ if feature.Enabled(ctx, feature.AutoCreateUserSchema) && err == nil {
170
autoCreateUserSchemaAnnotationValue, annotationExists := cluster.Annotations[naming.AutoCreateUserSchemaAnnotation]
171
if annotationExists && strings.EqualFold(autoCreateUserSchemaAnnotationValue, "true") {
172
log.V(1).Info("Writing schemas for users.")
0 commit comments