Skip to content

Commit 9a05800

Browse files
committed
fix alter_default_privileges.sgml
1 parent 88d756e commit 9a05800

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

postgresql/doc/src/sgml/ref/alter_default_privileges.sgml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ doc/src/sgml/ref/alter_default_privileges.sgml
33
PostgreSQL documentation
44
-->
55

6-
<refentry id="SQL-ALTERDEFAULTPRIVILEGES">
6+
<refentry id="sql-alterdefaultprivileges">
77
<!--==========================orignal english content==========================
88
<indexterm zone="sql-alterdefaultprivileges">
99
<primary>ALTER DEFAULT PRIVILEGES</primary>
@@ -58,7 +58,7 @@ GRANT { { USAGE | SELECT | UPDATE }
5858
TO { [ GROUP ] <replaceable class="parameter">role_name</replaceable> | PUBLIC } [, ...] [ WITH GRANT OPTION ]
5959

6060
GRANT { EXECUTE | ALL [ PRIVILEGES ] }
61-
ON FUNCTIONS
61+
ON { FUNCTIONS | ROUTINES }
6262
TO { [ GROUP ] <replaceable class="parameter">role_name</replaceable> | PUBLIC } [, ...] [ WITH GRANT OPTION ]
6363

6464
GRANT { USAGE | ALL [ PRIVILEGES ] }
@@ -85,7 +85,7 @@ REVOKE [ GRANT OPTION FOR ]
8585

8686
REVOKE [ GRANT OPTION FOR ]
8787
{ EXECUTE | ALL [ PRIVILEGES ] }
88-
ON FUNCTIONS
88+
ON { FUNCTIONS | ROUTINES }
8989
FROM { [ GROUP ] <replaceable class="parameter">role_name</replaceable> | PUBLIC } [, ...]
9090
[ CASCADE | RESTRICT ]
9191

@@ -121,7 +121,7 @@ GRANT { { USAGE | SELECT | UPDATE }
121121
TO { [ GROUP ] <replaceable class="parameter">role_name</replaceable> | PUBLIC } [, ...] [ WITH GRANT OPTION ]
122122

123123
GRANT { EXECUTE | ALL [ PRIVILEGES ] }
124-
ON FUNCTIONS
124+
ON { FUNCTIONS | ROUTINES }
125125
TO { [ GROUP ] <replaceable class="parameter">role_name</replaceable> | PUBLIC } [, ...] [ WITH GRANT OPTION ]
126126

127127
GRANT { USAGE | ALL [ PRIVILEGES ] }
@@ -148,7 +148,7 @@ REVOKE [ GRANT OPTION FOR ]
148148

149149
REVOKE [ GRANT OPTION FOR ]
150150
{ EXECUTE | ALL [ PRIVILEGES ] }
151-
ON FUNCTIONS
151+
ON { FUNCTIONS | ROUTINES }
152152
FROM { [ GROUP ] <replaceable class="parameter">role_name</replaceable> | PUBLIC } [, ...]
153153
[ CASCADE | RESTRICT ]
154154

@@ -179,11 +179,17 @@ ____________________________________________________________________________-->
179179
affect privileges assigned to already-existing objects.) Currently,
180180
only the privileges for schemas, tables (including views and foreign
181181
tables), sequences, functions, and types (including domains) can be
182-
altered.
182+
altered. For this command, functions include aggregates and procedures.
183+
The words <literal>FUNCTIONS</literal> and <literal>ROUTINES</literal> are
184+
equivalent in this command. (<literal>ROUTINES</literal> is preferred
185+
going forward as the standard term for functions and procedures taken
186+
together. In earlier PostgreSQL releases, only the
187+
word <literal>FUNCTIONS</literal> was allowed. It is not possible to set
188+
default privileges for functions and procedures separately.)
183189
</para>
184190
____________________________________________________________________________-->
185191
<para>
186-
<command>ALTER DEFAULT PRIVILEGES</command>允许你设置将被应用于未来要创建的对象的特权(它不会影响分配给已经存在的对象的特权)。当前,只能修改用于模式、表(包括视图和外部表)、序列、函数和类型(包括域)的特权。
192+
<command>ALTER DEFAULT PRIVILEGES</command>允许你设置将被应用于未来要创建的对象的特权(它不会影响分配给已经存在的对象的特权)。当前,只能修改用于模式、表(包括视图和外部表)、序列、函数和类型(包括域)的特权。其中,可设置权限的函数包括聚集函数和过程函数。当这个命令应用于函数时,单词<literal>FUNCTIONS</literal>和<literal>ROUTINES</literal>是等效的。(推荐使用<literal>ROUTINES</literal>,因为它是用来囊括函数和过程的一个标准术语。在较早的PostgreSQL发行版中,只允许单词<literal>FUNCTIONS</literal>。无法为函数或过程单独设置默认特权。)
187193
</para>
188194

189195
<!--==========================orignal english content==========================

0 commit comments

Comments
 (0)