Re: Permission on insert rules

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: josh(at)agliodbs(dot)com
Cc: Luis Sousa <llsousa(at)ualg(dot)pt>, pgsql-sql <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Permission on insert rules
Date: 2002-11-09 02:40:33
Message-ID: 200211090240.gA92eX412402@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Ludwig Lim 2002-11-09 02:50:41 Passing OLD/NEW as composite type PL/PGSQL
Previous Message Josh Berkus 2002-11-09 01:35:01 Re: Permission on insert rules