diff --git a/internal/management/controller/roles/postgres.go b/internal/management/controller/roles/postgres.go index 1aaa90f414..26c909d4b2 100644 --- a/internal/management/controller/roles/postgres.go +++ b/internal/management/controller/roles/postgres.go @@ -304,7 +304,7 @@ func appendInRoleOptions(role DatabaseRole, query *strings.Builder) { quotedInRoles := make([]string, len(role.InRoles)) for i, inRole := range role.InRoles { - quotedInRoles[i] = pq.QuoteIdentifier(inRole) + quotedInRoles[i] = pgx.Identifier{inRole}.Sanitize() } query.WriteString(fmt.Sprintf(" IN ROLE %s ", strings.Join(quotedInRoles, ",")))