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