mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-05 19:09:58 +08:00
Remove example of SQL-standard syntax for GRANT/REVOKE --- was causing
confusion.
This commit is contained in:
parent
5f3fbe14f3
commit
8e0f8630a6
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/grant.sgml,v 1.64 2007/02/01 00:28:19 momjian Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/grant.sgml,v 1.65 2007/04/07 03:48:25 momjian Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
@ -520,14 +520,8 @@ GRANT admins TO joe;
|
||||
</para>
|
||||
|
||||
<para>
|
||||
The SQL standard allows setting privileges for individual columns
|
||||
within a table:
|
||||
|
||||
<synopsis>
|
||||
GRANT <replaceable class="PARAMETER">privileges</replaceable>
|
||||
ON <replaceable class="PARAMETER">table</replaceable> [ ( <replaceable class="PARAMETER">column</replaceable> [, ...] ) ] [, ...]
|
||||
TO { PUBLIC | <replaceable class="PARAMETER">username</replaceable> [, ...] } [ WITH GRANT OPTION ]
|
||||
</synopsis>
|
||||
<productname>PostgreSQL</productname> does not support the SQL-standard
|
||||
functionality of setting privileges for individual columns.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/revoke.sgml,v 1.42 2007/01/31 23:26:04 momjian Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/revoke.sgml,v 1.43 2007/04/07 03:48:25 momjian Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
@ -231,15 +231,8 @@ REVOKE admins FROM joe;
|
||||
|
||||
<para>
|
||||
The compatibility notes of the <xref linkend="sql-grant" endterm="sql-grant-title"> command
|
||||
apply analogously to <command>REVOKE</command>. The syntax summary is:
|
||||
|
||||
<synopsis>
|
||||
REVOKE [ GRANT OPTION FOR ] <replaceable class="PARAMETER">privileges</replaceable>
|
||||
ON <replaceable class="parameter">object</replaceable> [ ( <replaceable class="parameter">column</replaceable> [, ...] ) ]
|
||||
FROM { PUBLIC | <replaceable class="parameter">username</replaceable> [, ...] }
|
||||
{ RESTRICT | CASCADE }
|
||||
</synopsis>
|
||||
One of <literal>RESTRICT</literal> or <literal>CASCADE</literal>
|
||||
apply analogously to <command>REVOKE</command>.
|
||||
<literal>RESTRICT</literal> or <literal>CASCADE</literal>
|
||||
is required according to the standard, but <productname>PostgreSQL</>
|
||||
assumes <literal>RESTRICT</literal> by default.
|
||||
</para>
|
||||
|
Loading…
Reference in New Issue
Block a user