sql: support ALTER ROLE ... RENAME TO ... #50821
Labels
A-sql-privileges
SQL privilege handling and permission checks.
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
T-sql-foundations
SQL Foundations Team (formerly SQL Schema + SQL Sessions)
CockroachDB currently does not support renaming an existing role directly. In order to do so, you need to create a new role with the same privileges and then drop the old one.
Supporting rename is not trivial as it stands because all privileges are keyed off of the role name. This is made more difficult by the fact that privileges are stored directly on descriptors, not in system tables.
Jira issue: CRDB-4084
Epic CRDB-25679
The text was updated successfully, but these errors were encountered: