Re: DML Restriction unless through a function - Mailing list pgsql-general

From Shridhar Daithankar
Subject Re: DML Restriction unless through a function
Date
Msg-id 40E2BCFB.2030007@frodo.hserus.net
Whole thread Raw
In response to DML Restriction unless through a function  (val@webtribe.net)
List pgsql-general
val@webtribe.net wrote:

> Hi all;
>
> Is it possible to write a trigger or the ilk that would disallow
> direct inserts, updates, or deletes to a table unless it was
> being executed through a function?  How can I identify that the
> DML being issued is being done via a function?

http://www.postgresql.org/docs/7.4/static/sql-createfunction.html

Look for security definer. Grant table access only to user who creates the
function and grant access to function to everybody concerned.

HTH

  Shridhar

pgsql-general by date:

Previous
From: Karam Chand
Date:
Subject: SQLyog for PostgreSQL has been released
Next
From: Bruno Wolff III
Date:
Subject: Re: DML Restriction unless through a function