From 5a196bf838132194b221735751b4cb284518e75a Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sat, 7 Apr 2007 03:48:25 +0000 Subject: [PATCH] Remove example of SQL-standard syntax for GRANT/REVOKE --- was causing confusion. --- doc/src/sgml/ref/grant.sgml | 10 ++-------- doc/src/sgml/ref/revoke.sgml | 11 ++--------- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/doc/src/sgml/ref/grant.sgml b/doc/src/sgml/ref/grant.sgml index 88c443bd15..ccdde1fff3 100644 --- a/doc/src/sgml/ref/grant.sgml +++ b/doc/src/sgml/ref/grant.sgml @@ -520,14 +520,8 @@ GRANT admins TO joe; - The SQL standard allows setting privileges for individual columns - within a table: - - -GRANT privileges - ON table [ ( column [, ...] ) ] [, ...] - TO { PUBLIC | username [, ...] } [ WITH GRANT OPTION ] - + PostgreSQL does not support the SQL-standard + functionality of setting privileges for individual columns. diff --git a/doc/src/sgml/ref/revoke.sgml b/doc/src/sgml/ref/revoke.sgml index d039ccafa8..26cce3dba6 100644 --- a/doc/src/sgml/ref/revoke.sgml +++ b/doc/src/sgml/ref/revoke.sgml @@ -231,15 +231,8 @@ REVOKE admins FROM joe; The compatibility notes of the command - apply analogously to REVOKE. The syntax summary is: - - -REVOKE [ GRANT OPTION FOR ] privileges - ON object [ ( column [, ...] ) ] - FROM { PUBLIC | username [, ...] } - { RESTRICT | CASCADE } - - One of RESTRICT or CASCADE + apply analogously to REVOKE. + RESTRICT or CASCADE is required according to the standard, but PostgreSQL assumes RESTRICT by default. -- 2.39.5