You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sql: functions have EXECUTE priv for public by default
This uses the default privilege infrastructure in a similar way to how
the USAGE privilege for types is given to `public` by default.
This also fixes a display bug that was preventing the ALL privileges
that are given to root and admin from being shown in SHOW.
Release note (sql change): The public pseudo-role now receives the
EXECUTE privilege by default for all user-defined functions that are
created. This can be adjusted by using ALTER DEFAULT PRIVILEGES.
Copy file name to clipboardExpand all lines: pkg/ccl/backupccl/testdata/backup-restore/backup-permissions
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -295,8 +295,7 @@ BACKUP INTO 'userfile:///test-nonroot-cluster';
295
295
exec-sql user=testuser
296
296
BACKUP DATABASE d_test_fn INTO 'userfile:///test-nonroot-db';
297
297
----
298
-
pq: user testuser does not have EXECUTE privilege on function f
299
-
HINT: The existing privileges are being deprecated in favour of a fine-grained privilege model explained here https://www.cockroachlabs.com/docs/stable/backup.html#required-privileges. In a future release, to run BACKUP DATABASE, user testuser will exclusively require the BACKUP privilege on database d_test_fn.
298
+
NOTICE: The existing privileges are being deprecated in favour of a fine-grained privilege model explained here https://www.cockroachlabs.com/docs/stable/backup.html#required-privileges. In a future release, to run BACKUP DATABASE, user testuser will exclusively require the BACKUP privilege on database d_test_fn.
0 commit comments