mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Remove example of SQL-standard syntax for GRANT/REVOKE --- was causing
confusion.
This commit is contained in:
@ -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
|
PostgreSQL documentation
|
||||||
-->
|
-->
|
||||||
|
|
||||||
@ -520,14 +520,8 @@ GRANT admins TO joe;
|
|||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
The SQL standard allows setting privileges for individual columns
|
<productname>PostgreSQL</productname> does not support the SQL-standard
|
||||||
within a table:
|
functionality of setting privileges for individual columns.
|
||||||
|
|
||||||
<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>
|
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<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
|
PostgreSQL documentation
|
||||||
-->
|
-->
|
||||||
|
|
||||||
@ -231,15 +231,8 @@ REVOKE admins FROM joe;
|
|||||||
|
|
||||||
<para>
|
<para>
|
||||||
The compatibility notes of the <xref linkend="sql-grant" endterm="sql-grant-title"> command
|
The compatibility notes of the <xref linkend="sql-grant" endterm="sql-grant-title"> command
|
||||||
apply analogously to <command>REVOKE</command>. The syntax summary is:
|
apply analogously to <command>REVOKE</command>.
|
||||||
|
<literal>RESTRICT</literal> or <literal>CASCADE</literal>
|
||||||
<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>
|
|
||||||
is required according to the standard, but <productname>PostgreSQL</>
|
is required according to the standard, but <productname>PostgreSQL</>
|
||||||
assumes <literal>RESTRICT</literal> by default.
|
assumes <literal>RESTRICT</literal> by default.
|
||||||
</para>
|
</para>
|
||||||
|
Reference in New Issue
Block a user