grant under SQL92 - Mailing list pgsql-general

From Vladislav Breus
Subject grant under SQL92
Date
Msg-id 3AB773B5.7A669CB4@dtr.donetsk.ua
Whole thread Raw
Responses Re: grant under SQL92
List pgsql-general
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??

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Re : overriding default value in inherited column (+ set_value function)
Next
From: "Oliver Elphick"
Date:
Subject: Re: grant under SQL92