Skip to content

Commit d0fc03d

Browse files
committed
Unblock user table changes from long-running txns
Fixes DOC-14612
1 parent 90d91b5 commit d0fc03d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/current/v25.4/create-user.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ You can use the keywords `ROLE` and `USER` interchangeably. `CREATE USER` is equ
1616
- After creating users, you must [grant them privileges to databases and tables]({% link {{ page.version.version }}/grant.md %}).
1717
- All users belong to the `public` role, to which you can [grant]({% link {{ page.version.version }}/grant.md %}) and [revoke]({% link {{ page.version.version }}/revoke.md %}) privileges.
1818
- On secure clusters, you must [create client certificates for users]({% link {{ page.version.version }}/cockroach-cert.md %}#create-the-certificate-and-key-pair-for-a-client) and users must [authenticate their access to the cluster](#user-authentication).
19+
- {% include_cached new-in.html version="v25.4" %} The `CREATE USER` statement waits for full-cluster visibility of the new user metadata. It is not blocked by long-running transactions that may have accessed older metadata, and it does not create a [background job]({% link {{ page.version.version }}/show-jobs.md %}).
1920

2021
## Required privileges
2122

src/current/v25.4/grant.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ For privileges required by specific statements, see the documentation for the re
6464
- The `root` user is automatically created as an `admin` role and assigned the `ALL` privilege for new databases.
6565
- All privileges of a role are inherited by all its members.
6666
- Membership loops are not allowed (direct: `A is a member of B is a member of A` or indirect: `A is a member of B is a member of C ... is a member of A`).
67+
- {% include_cached new-in.html version="v25.4" %} When you grant role membership (for example, `GRANT {role} TO {user}`), CockroachDB waits for full-cluster visibility of the updated role metadata. The operation is not blocked by long-running transactions that may have accessed older metadata, and it does not create a [background job]({% link {{ page.version.version }}/show-jobs.md %}).
6768

6869
## Known limitations
6970

0 commit comments

Comments
 (0)