-
Notifications
You must be signed in to change notification settings - Fork 4.1k
sql: support DROP OWNED BY command #55381
Copy link
Copy link
Closed
Labels
A-schema-changesA-sql-privilegesSQL privilege handling and permission checks.SQL privilege handling and permission checks.C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)E-starterMight be suitable for a starter project for new employees or team members.Might be suitable for a starter project for new employees or team members.T-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)SQL Foundations Team (formerly SQL Schema + SQL Sessions)X-anchored-telemetryThe issue number is anchored by telemetry references.The issue number is anchored by telemetry references.
Description
To facilitate dropping roles, we should support Postgres's DROP OWNED BY command. This drops all owned objects as well as any grants on objects not owned by the role.
Relevant Postgres docs:
https://www.postgresql.org/docs/current/sql-drop-owned.html
https://www.postgresql.org/docs/current/role-removal.html
Epic CRDB-13664
Jira issue: CRDB-3673
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-schema-changesA-sql-privilegesSQL privilege handling and permission checks.SQL privilege handling and permission checks.C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)E-starterMight be suitable for a starter project for new employees or team members.Might be suitable for a starter project for new employees or team members.T-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)SQL Foundations Team (formerly SQL Schema + SQL Sessions)X-anchored-telemetryThe issue number is anchored by telemetry references.The issue number is anchored by telemetry references.