Received: from steel.orel.ru (steel.orel.ru [195.90.189.225]) by hub.org (8.9.3/8.9.3) with ESMTP id IAA51632 for ; Tue, 30 May 2000 08:42:59 -0400 (EDT) (envelope-from jk@steel.oryol.ru) Received: from jk.dev ([192.168.131.37]) by steel.orel.ru with esmtp (Exim 3.00 #1) id 12wlJn-0004vC-00; Tue, 30 May 2000 16:40:23 +0400 Received: from jk by jk.dev with local (Exim 3.00 #1) id 12wlJn-0003pI-00; Tue, 30 May 2000 16:40:23 +0400 Date: Tue, 30 May 2000 16:40:23 +0400 From: Eugene Karpachov To: Stephan Szabo Cc: pgsql-admin@postgresql.org Subject: Re: grant select,update - bug or feature? Message-ID: <20000530164023.A13129@steel.orel.ru> Mail-Followup-To: Stephan Szabo , pgsql-admin@postgresql.org References: <20000529151909.A10272@steel.orel.ru> <000001bfca05$b07d4470$0c64010a@kick.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <000001bfca05$b07d4470$0c64010a@kick.com>; from sszabo@kick.com on Mon, May 29, 2000 at 08:51:10PM -0700 X-Archive-Number: 200005/49 Mon, May 29, 2000 at 08:51:10PM -0700, Stephan Szabo write: > This is a known issue in the 7.0 foreign key implementation. The short Thank you, now it's clear for me. > It's something that will get fixed, it's just a question of how and when. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ It's just what I want to know :) > > create table master ( i integer primary key, a text); > > -- I want to protect this table from updating by 'dbuser' By the way, how can I make such a protection? Are triggers the only way? > > create table slave ( j integer references master, b text); > > -- I want to enable updating this table by 'dbuser' > > > > grant select on master to dbuser; > > grant select,update on slave to dbuser; -- jk