Tables, Views and Rules - Mailing list pgsql-general

From Raymond
Subject Tables, Views and Rules
Date
Msg-id 200307211728.06429.support@bigriverinfotech.com
Whole thread Raw
List pgsql-general
A few more questions:

Created table and view on table.
Granted insert,update, delete to table and select on view.

Problem:

User unable to delete from table when conditional (where); permission denied.
Only "delete from table" statement accepted which deletes the entire table.
Will an abstract rule such as "CREATE RULE newRule AS ON DELETE TO view DO
INSTEAD DELETE table" allow the user to define the conditions (where) for the
view delete?. Hard-coding conditions is not practical.

What are the permission issues for the view and table in a rule?

Comments and suggestions please.

Ray

pgsql-general by date:

Previous
From: Josh Berkus
Date:
Subject: Need business user quotes for 7.4
Next
From: Tom Lane
Date:
Subject: Re: A doubt w.r.t WAL