Commit 8e0f8630 authored by Bruce Momjian's avatar Bruce Momjian

Remove example of SQL-standard syntax for GRANT/REVOKE --- was causing

confusion.
parent 5f3fbe14
<!-- <!--
$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; ...@@ -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>
......
<!-- <!--
$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; ...@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment