|
1 | 1 | <!--
|
2 |
| -$Header: /cvsroot/pgsql/doc/src/sgml/ref/grant.sgml,v 1.36 2003/09/20 20:12:05 tgl Exp $ |
| 2 | +$Header: /cvsroot/pgsql/doc/src/sgml/ref/grant.sgml,v 1.37 2003/10/31 20:00:48 tgl Exp $ |
3 | 3 | PostgreSQL documentation
|
4 | 4 | -->
|
5 | 5 |
|
@@ -66,19 +66,21 @@ GRANT { { CREATE | USAGE } [,...] | ALL [ PRIVILEGES ] }
|
66 | 66 | </para>
|
67 | 67 |
|
68 | 68 | <para>
|
69 |
| - There is no need to grant privileges to the owner of an object (usually the user that created it), |
70 |
| - as the owner has all privileges by default. (The owner could, |
71 |
| - however, choose to revoke some of his own privileges for safety.) |
72 |
| - The right to drop an object, or to alter it in any way is |
73 |
| - not described by a grantable right; it is inherent in the owner, |
74 |
| - and cannot be granted or revoked. |
| 69 | + If <literal>WITH GRANT OPTION</literal> is specified, the recipient |
| 70 | + of the privilege may in turn grant it to others. By default this |
| 71 | + is not allowed. Grant options can only be granted to individual |
| 72 | + users, not to groups or <literal>PUBLIC</literal>. |
75 | 73 | </para>
|
76 | 74 |
|
77 | 75 | <para>
|
78 |
| - If <literal>WITH GRANT OPTION</literal> is specified, the recipient |
79 |
| - of the privilege may in turn grant it to others. By default this |
80 |
| - is not possible. Grant options can only be granted to individual |
81 |
| - users, not groups or <literal>PUBLIC</literal>. |
| 76 | + There is no need to grant privileges to the owner of an object |
| 77 | + (usually the user that created it), |
| 78 | + as the owner has all privileges by default. (The owner could, |
| 79 | + however, choose to revoke some of his own privileges for safety.) |
| 80 | + The right to drop an object, or to alter its definition in any way is |
| 81 | + not described by a grantable privilege; it is inherent in the owner, |
| 82 | + and cannot be granted or revoked. It is not possible for the owner's |
| 83 | + grant options to be revoked, either. |
82 | 84 | </para>
|
83 | 85 |
|
84 | 86 | <para>
|
@@ -263,6 +265,13 @@ GRANT { { CREATE | USAGE } [,...] | ALL [ PRIVILEGES ] }
|
263 | 265 | except when absolutely necessary.
|
264 | 266 | </para>
|
265 | 267 |
|
| 268 | + <para> |
| 269 | + If a superuser chooses to issue a <command>GRANT</> or <command>REVOKE</> |
| 270 | + command, the command is performed as though it were issued by the |
| 271 | + owner of the affected object. In particular, privileges granted via |
| 272 | + such a command will appear to have been granted by the object owner. |
| 273 | + </para> |
| 274 | + |
266 | 275 | <para>
|
267 | 276 | Currently, to grant privileges in <productname>PostgreSQL</productname>
|
268 | 277 | to only a few columns, you must
|
|
0 commit comments