Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
124611: sql: drop user/role did not detect usage by types r=fqazi a=fqazi Previously, it was possible to drop a user / role in use by a type because the detection logic only checked ownership. To address this, this patch will check if the user exists within any types before allowing the drop to go through. Note: An automated repair during upgrade exists to fix descriptors with this issue, since they can break SHOW GRANTS. The same repair query can also be invoked manually. Fixes: cockroachdb#124441 Release note (bug fix): Drop role/user could leave references behind inside types, which could prevent SHOW GRANTS from working Co-authored-by: Faizan Qazi <[email protected]>
- Loading branch information