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
| CREATE PROCEDURE | Global | Creates a procedure. |
41
+
42
+
43
+
To create a procedure, the user performing the operation or the [current_role](/guides/security/access-control/roles) must have the CREATE PROCEDURE [privilege](/guides/security/access-control/privileges).
44
+
45
+
36
46
## Examples
37
47
38
48
This example defines a stored procedure that converts weight from kilograms (kg) to pounds (lb):
@@ -73,6 +83,10 @@ BEGIN
73
83
RETURN sum;
74
84
END;
75
85
$$;
86
+
87
+
-- Grant ACCESS PROCEDURE Privilege TO role test
88
+
GRANT ACCESS PROCEDURE ON PROCEDURE loop_test() to role test;
0 commit comments