X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 88F09565AA for ; Tue, 22 Mar 2005 21:46:31 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 93582-01 for ; Tue, 22 Mar 2005 21:46:22 +0000 (GMT) Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id B3C84565A3 for ; Tue, 22 Mar 2005 21:46:20 +0000 (GMT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.3/8.13.3) with ESMTP id j2MLkIBT031736 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 22 Mar 2005 14:46:20 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.3/8.13.3) with ESMTP id j2MLkIEu009331; Tue, 22 Mar 2005 14:46:18 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.3/8.13.3/Submit) id j2MLkHg4009330; Tue, 22 Mar 2005 14:46:17 -0700 (MST) (envelope-from mfuhr) Date: Tue, 22 Mar 2005 14:46:17 -0700 From: Michael Fuhr To: subhash@nmsu.edu Cc: PostgreSQL SQL Subject: Re: Permissions on tables and views Message-ID: <20050322214617.GA97500@winnie.fuhr.org> References: <1111526888.42408de81a042@webmail.nmsu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1111526888.42408de81a042@webmail.nmsu.edu> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.004 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/306 X-Sequence-Number: 20785 On Tue, Mar 22, 2005 at 02:28:08PM -0700, subhash@nmsu.edu wrote: > I have a requirement where I have a table and a view on top of it. I want to > make some changes so that a user in a given group would be able to insert/update > only on the view (ofcourse i have a rule which inserts/updates the table) but > not on the underlying table. I tried revoke the insert/update permissions on the > table, but it fails even the inserts/updates on the view. How can i set these > permissions ? Did you grant insert and update permission on the view? Does the underlying table have a sequence? If so, did you grant update permission on it? If you still have trouble, then please post a small, self-contained example that demonstrates the problem, including the exact text of any error messages. -- Michael Fuhr http://www.fuhr.org/~mfuhr/