Skip to content

Commit

Permalink
stbof feedback; added remote diagram includes
Browse files Browse the repository at this point in the history
  • Loading branch information
ericharmeling committed Nov 9, 2021
1 parent 277089e commit 853820c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions v21.2/alter-default-privileges.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ For an example, see [Grant default privileges to a specific role](#grant-default
## Synopsis

<div>
{% include {{ page.version.version }}/sql/generated/diagrams/alter_default_privileges.html %}
{% remote_include https://raw.githubusercontent.com/cockroachdb/generated-diagrams/release-21.2/grammar_svg/alter_default_privileges.html %}
</div>

### Parameters
Expand Down Expand Up @@ -276,7 +276,7 @@ SQLSTATE: 42501

`cockroachlabs` created the `tracks` table after revoking default `SELECT` privileges from `max`. As a result, `max` never had `SELECT` privileges on `tracks`.

Note that, because `max` has no default privileges, the user can now be dropped:
Because `max` has no default privileges, the user can now be dropped:

{% include copy-clipboard.html %}
~~~ sql
Expand Down
2 changes: 1 addition & 1 deletion v21.2/authorization.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ To view the default privileges for a role, or for a set of roles, use the [`SHOW

To change the default privileges on objects that a user creates, use the [`ALTER DEFAULT PRIVILEGES`](alter-default-privileges.html) statement.

Note that the creator of an object is also the object's [owner](authorization.html#object-ownership). Any roles that are members of the owner role have `ALL` privileges on the object, independent of the default privileges. Altering the default privileges of objects created by a role does not affect that role's privileges as the object's owner. The default privileges granted to other users/roles are always in addition to the ownership (i.e., `ALL`) privileges given to the creator of the object.
The creator of an object is also the object's [owner](authorization.html#object-ownership). Any roles that are members of the owner role have `ALL` privileges on the object, independent of the default privileges. Altering the default privileges of objects created by a role does not affect that role's privileges as the object's owner. The default privileges granted to other users/roles are always in addition to the ownership (i.e., `ALL`) privileges given to the creator of the object.

For more examples of default privileges, see the examples on the [`SHOW DEFAULT PRIVILEGES`](show-default-privileges.html#examples) and [`ALTER DEFAULT PRIVILEGES`](alter-default-privileges.html#examples) statement pages.

Expand Down
2 changes: 1 addition & 1 deletion v21.2/show-default-privileges.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ toc: true
## Synopsis

<div>
{% include {{ page.version.version }}/sql/generated/diagrams/show_default_privileges.html %}
{% remote_include https://raw.githubusercontent.com/cockroachdb/generated-diagrams/release-21.2/grammar_svg/show_default_privileges.html %}
</div>

## Parameters
Expand Down

0 comments on commit 853820c

Please sign in to comment.