Tables, Views and Rules

From: Raymond <support(at)bigriverinfotech(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Tables, Views and Rules
Date: 2003-07-22 00:28:06
Message-ID: 200307211728.06429.support@bigriverinfotech.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2003-07-22 02:00:24 Re: [pgsql-advocacy] [GENERAL] Postgresql & AMD x86-64
Previous Message Josh Berkus 2003-07-21 23:08:27 Need business user quotes for 7.4