Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 4CA70476075 for ; Fri, 8 Nov 2002 21:41:17 -0500 (EST) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by postgresql.org (Postfix) with ESMTP id AB323475F3D for ; Fri, 8 Nov 2002 21:41:14 -0500 (EST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id gA92eX412402; Fri, 8 Nov 2002 21:40:33 -0500 (EST) From: Bruce Momjian Message-Id: <200211090240.gA92eX412402@candle.pha.pa.us> Subject: Re: Permission on insert rules In-Reply-To: <200211081735.01704.josh@agliodbs.com> To: josh@agliodbs.com Date: Fri, 8 Nov 2002 21:40:33 -0500 (EST) Cc: Luis Sousa , pgsql-sql X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/147 X-Sequence-Number: 10289 Josh Berkus wrote: > > Luis, > > > Just a question. > > I'm writing some rules to insert/update some data in my database, and I > > gave all the privileges on that view to the user, and only select on the > > tables. > > When that user inserts data using the view, I thought that was user > > postgres that will do the rest ! But I got permission denied on those > > tables. > > The idea was to create a layer, with the views, giving to that user > > permission on views to insert and update, and not to tables. > > Is this possible ? > > This is a known problem. > > I know that permissions for Functions has been addressed in 7.3. However, I > am not sure about permissions for updatable views. Tom, Bruce? Views have always had their own permissions. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073