Received: from mail.postgresql.org (webmail.postgresql.org [216.126.85.28]) by mail.postgresql.org (8.11.3/8.11.1) with SMTP id f2L4iXH85604 for ; Tue, 20 Mar 2001 23:44:33 -0500 (EST) (envelope-from pgsql-sql-owner@postgresql.org) Received: from news.tht.net (news.hub.org [216.126.91.242]) by mail.postgresql.org (8.11.3/8.11.1) with ESMTP id f2KEdlN17044 for ; Tue, 20 Mar 2001 09:39:47 -0500 (EST) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.1/8.11.1) id f2KEAMq49731 for pgsql-sql@postgresql.org; Tue, 20 Mar 2001 09:10:22 -0500 (EST) (envelope-from news) From: Vladislav Breus X-Newsgroups: comp.databases.postgresql.sql Subject: grant under sql92 Date: Tue, 20 Mar 2001 16:09:23 +0200 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 26 Message-ID: <3AB76493.EA2F87CF@dtr.donetsk.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit X-Complaints-To: scrappy@hub.org X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: en To: pgsql-sql@postgresql.org X-Archive-Number: 200103/406 X-Sequence-Number: 2074 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??