grant under sql92 - Mailing list pgsql-sql

From Vladislav Breus
Subject grant under sql92
Date
Msg-id 3AB76493.EA2F87CF@dtr.donetsk.ua
Whole thread Raw
List pgsql-sql
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-sql by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Maybe a Bug, maybe bad SQL
Next
From: "guard"
Date:
Subject: help pgsql 7.1beta & delphi