- 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.
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.