From: Bruce Momjian <pgman@candle.pha.pa.us>
To: josh@agliodbs.com
Cc: Luis Sousa <llsousa@ualg.pt>
Cc: pgsql-sql <pgsql-sql@postgresql.org>
Subject: Re: Permission on insert rules
Date: Fri, 8 Nov 2002 21:40:33 -0500 (EST)
Message-ID: <200211090240.gA92eX412402@candle.pha.pa.us> (raw)
In-Reply-To: <200211081735.01704.josh@agliodbs.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: pgman@candle.pha.pa.us, josh@agliodbs.com, llsousa@ualg.pt
Subject: Re: Permission on insert rules
In-Reply-To: <200211090240.gA92eX412402@candle.pha.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox