sql/delegate: row level security statements incorrectly stored in crdb_internal.create_statements #141932
Labels
branch-master
Failures and bugs on the master branch.
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
T-sql-foundations
SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Describe the problem
Row level security statements are currently being stored in
crdb_internal.create_statements
they should only be stored in thepolicy_statements
andalter_statements
columns.Expected behavior
We want to not see row level security statements in
crdb_internal.create_statements
the fix for this should be to update the SQL in show_table.go similar to how it works for zone configs.cockroach/pkg/sql/delegate/show_table.go
Lines 78 to 94 in 9f61a38
Additional context
Slack thread with additional details
https://cockroachlabs.slack.com/archives/C083W9NK34H/p1740086103580329?thread_ts=1738354642.988319&cid=C083W9NK34H
Jira issue: CRDB-48083
The text was updated successfully, but these errors were encountered: