1
1
<!--
2
- $Header: /cvsroot/pgsql/doc/src/sgml/ref/grant.sgml,v 1.19 2002/01/20 22:19:57 petere Exp $
2
+ $Header: /cvsroot/pgsql/doc/src/sgml/ref/grant.sgml,v 1.20 2002/02/18 23:11:02 petere Exp $
3
3
PostgreSQL documentation
4
4
-->
5
5
@@ -19,6 +19,14 @@ PostgreSQL documentation
19
19
GRANT { { SELECT | INSERT | UPDATE | DELETE | RULE | REFERENCES | TRIGGER } [,...] | ALL [ PRIVILEGES ] }
20
20
ON [ TABLE ] <replaceable class="PARAMETER">objectname</replaceable> [, ...]
21
21
TO { <replaceable class="PARAMETER">username</replaceable> | GROUP <replaceable class="PARAMETER">groupname</replaceable> | PUBLIC } [, ...]
22
+
23
+ GRANT { EXECUTE | ALL [ PRIVILEGES ] }
24
+ ON FUNCTION <replaceable>funcname</replaceable> ([<replaceable>type</replaceable>, ...]) [, ...]
25
+ TO { <replaceable class="PARAMETER">username</replaceable> | GROUP <replaceable class="PARAMETER">groupname</replaceable> | PUBLIC } [, ...]
26
+
27
+ GRANT { USAGE | ALL [ PRIVILEGES ] }
28
+ ON LANGUAGE <replaceable>langname</replaceable> [, ...]
29
+ TO { <replaceable class="PARAMETER">username</replaceable> | GROUP <replaceable class="PARAMETER">groupname</replaceable> | PUBLIC } [, ...]
22
30
</synopsis>
23
31
</refsynopsisdiv>
24
32
@@ -27,8 +35,9 @@ GRANT { { SELECT | INSERT | UPDATE | DELETE | RULE | REFERENCES | TRIGGER } [,..
27
35
28
36
<para>
29
37
The <command>GRANT</command> command gives specific permissions on
30
- an object (table, view, sequence) to one or more users or groups of users.
31
- These permissions are added to those already granted, if any.
38
+ an object (table, view, sequence, function, procedural language) to
39
+ one or more users or groups of users. These permissions are added
40
+ to those already granted, if any.
32
41
</para>
33
42
34
43
<para>
@@ -134,14 +143,36 @@ GRANT { { SELECT | INSERT | UPDATE | DELETE | RULE | REFERENCES | TRIGGER } [,..
134
143
</listitem>
135
144
</varlistentry>
136
145
146
+ <varlistentry>
147
+ <term>EXECUTE</term>
148
+ <listitem>
149
+ <para>
150
+ Allows the use of the specified function and the use of any
151
+ operators that are implemented on top of the function. This is
152
+ the only type of privilege that is applicable to functions.
153
+ </para>
154
+ </listitem>
155
+ </varlistentry>
156
+
157
+ <varlistentry>
158
+ <term>USAGE</term>
159
+ <listitem>
160
+ <para>
161
+ Allows the use of the specified procedural language for the
162
+ creation of functions in that language. This is the only type
163
+ of privilege that is applicable to procedural languages.
164
+ </para>
165
+ </listitem>
166
+ </varlistentry>
167
+
137
168
<varlistentry>
138
169
<term>ALL PRIVILEGES</term>
139
170
<listitem>
140
171
<para>
141
- Grant all of the above privileges at once. The
142
- <literal>PRIVILEGES</literal> key word is optional in
143
- <productname>PostgreSQL</productname>, though it is
144
- required by strict SQL.
172
+ Grant all of the privileges applicable to the object at once.
173
+ The <literal>PRIVILEGES</literal> key word is optional in
174
+ <productname>PostgreSQL</productname>, though it is required by
175
+ strict SQL.
145
176
</para>
146
177
</listitem>
147
178
</varlistentry>
0 commit comments