Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sql: support listing grants for role 'public' #96948

Closed
fabiog1901 opened this issue Feb 10, 2023 · 0 comments · Fixed by #96957
Closed

sql: support listing grants for role 'public' #96948

fabiog1901 opened this issue Feb 10, 2023 · 0 comments · Fixed by #96957
Assignees
Labels
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)

Comments

@fabiog1901
Copy link
Contributor

fabiog1901 commented Feb 10, 2023

Currently, there is no simple way to list the GRANTS given to role public.

The SQL statement below helps

select * 
from [show grants] 
where grantee = 'public' 
    and (schema_name is null or schema_name = 'public');

but ideally I'd like to run the standard show grants stmt, as in

show grants for public;

Slack

Jira issue: CRDB-24427

Epic CRDB-17785

@fabiog1901 fabiog1901 added the C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) label Feb 10, 2023
@exalate-issue-sync exalate-issue-sync bot added the T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions) label Feb 10, 2023
@craig craig bot closed this as completed in 8c2060c Feb 10, 2023
SQL Sessions - Deprecated automation moved this from Triage to Done Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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)
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

2 participants