docs icon indicating copy to clipboard operation
docs copied to clipboard

sql: add is_grantable to SHOW DEFAULT PRIVILEGES

Open cockroach-teamcity opened this issue 3 years ago • 2 comments

Exalate commented:

Related PR: https://github.com/cockroachdb/cockroach/pull/85027 Commit: https://github.com/cockroachdb/cockroach/commit/91e1f129bc8aebc113d60db711ee6a29042492fa


Release note (sql change): The SHOW DEFAULT PRIVILEGES command now has a column that says if the default privilege will give the grant option to the grantee.

Jira Issue: DOC-5189

cockroach-teamcity avatar Jul 28 '22 03:07 cockroach-teamcity

@rmloveland another one that could use a bump on the backlog

root@localhost:26257/defaultdb>  SHOW DEFAULT PRIVILEGES
                             -> ;
  role | for_all_roles | object_type | grantee | privilege_type | is_grantable
-------+---------------+-------------+---------+----------------+---------------
  root |       f       | functions   | root    | ALL            |      t
  root |       f       | schemas     | root    | ALL            |      t
  root |       f       | sequences   | root    | ALL            |      t
  root |       f       | tables      | root    | ALL            |      t
  root |       f       | types       | public  | USAGE          |      f
  root |       f       | types       | root    | ALL            |      t
(6 rows)

We have this is_grantable column now when doing SHOW DEFAULT PRIVILEGES Our examples here: https://www.cockroachlabs.com/docs/dev/show-default-privileges.html Could use an update.

dikshant avatar Nov 14 '22 16:11 dikshant

@dikshant thanks, assigned myself and bumped the prio

rmloveland avatar Nov 14 '22 21:11 rmloveland