Re: Permission on insert rules - Mailing list pgsql-sql

From Josh Berkus
Subject Re: Permission on insert rules
Date
Msg-id 200211081735.01704.josh@agliodbs.com
Whole thread Raw
In response to Permission on insert rules  (Luis Sousa <llsousa@ualg.pt>)
Responses Re: Permission on insert rules  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-sql
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?

--
-Josh BerkusAglio Database SolutionsSan Francisco



pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: Time difference without intervals
Next
From: Bruce Momjian
Date:
Subject: Re: Permission on insert rules