Skip to content

sql: support DROP OWNED BY command #55381

@solongordon

Description

@solongordon

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

Metadata

Metadata

Assignees

Labels

A-schema-changesA-sql-privilegesSQL privilege handling and permission checks.C-enhancementSolution 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.T-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)X-anchored-telemetryThe issue number is anchored by telemetry references.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions