I have postgresql-7.0.3
I'm trying to do following :
test=> create table test (col1 int,col2 int);
test=> grant select on test (col1) to user1;
ERROR: parser: parse error at or near "("
I'm trying to use GRANT with SQL92 extentions,(set permissions on
the individual column) but it dosn't work.
Where I was wrong ?
Please, help me.
from aw_pgsql_book:
>The SQL92 syntax for GRANT allows setting privileges for individual columns within a table, and
>allows setting a privilege to grant the same privileges to others:
>GRANT privilege [, ...]
>ON object [ ( column [, ...] ) ] [, ...]
^^^^^^^^^^^^^^^^^^^^^
>TO { PUBLIC | username [, ...] }
>[ WITH GRANT OPTION ]
by default, I can use SQL92 format - is it right??