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: \d command to include RLS policies #138825

Open
Tracked by #73596
spilchen opened this issue Jan 10, 2025 · 0 comments
Open
Tracked by #73596

sql: \d command to include RLS policies #138825

spilchen opened this issue Jan 10, 2025 · 0 comments
Assignees
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)

Comments

@spilchen
Copy link
Contributor

spilchen commented Jan 10, 2025

Row-level security (RLS) policies should be displayed when the table is included in the output of \d.

We should aim to closely follow PostgreSQL's output format, as shown in this example:

postgres=# \d cities;
Table "public.cities"
Column |     Type     | Collation | Nullable | Default
----------------------------------------------------
state  | text         |           |          |
pop    | numeric(9,3) |           |          |
name   | text         |           |          |
Policies:
POLICY "easy"
WITH CHECK (true)

Jira issue: CRDB-46367

@spilchen spilchen added C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) A-sql-privileges SQL privilege handling and permission checks. T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions) labels Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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)
Projects
None yet
Development

No branches or pull requests

2 participants