11<!--
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 $
33PostgreSQL documentation
44-->
55
@@ -19,6 +19,14 @@ PostgreSQL documentation
1919GRANT { { SELECT | INSERT | UPDATE | DELETE | RULE | REFERENCES | TRIGGER } [,...] | ALL [ PRIVILEGES ] }
2020 ON [ TABLE ] <replaceable class="PARAMETER">objectname</replaceable> [, ...]
2121 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 } [, ...]
2230</synopsis>
2331 </refsynopsisdiv>
2432
@@ -27,8 +35,9 @@ GRANT { { SELECT | INSERT | UPDATE | DELETE | RULE | REFERENCES | TRIGGER } [,..
2735
2836 <para>
2937 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.
3241 </para>
3342
3443 <para>
@@ -134,14 +143,36 @@ GRANT { { SELECT | INSERT | UPDATE | DELETE | RULE | REFERENCES | TRIGGER } [,..
134143 </listitem>
135144 </varlistentry>
136145
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+
137168 <varlistentry>
138169 <term>ALL PRIVILEGES</term>
139170 <listitem>
140171 <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.
145176 </para>
146177 </listitem>
147178 </varlistentry>
0 commit comments