pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andy Shellam <andy.shellam@mailnetwork.co.uk>
To: dayoj@cleanjohn.net
Cc: pgsql-admin@postgresql.org
Subject: Re: Priviliges and Roles
Date: Mon, 27 Feb 2006 12:21:51 +0000
Message-ID: <ivcicf.enc6d9@webmail2.mailnetwork.co.uk> (raw)
In-Reply-To: <4402EC0C.9030903@cleanjohn.net>
References: <4402EC0C.9030903@cleanjohn.net>

Hi Dayo,

This is how I understand it, but I might be wrong:
I believe the user who is has permission to execute the function also needs
permissions to perform the table writes.

Regards

Andy

Dayo Johnson  wrote:

> Hello,
> 
> Is it possible to do the following:
> Disallow permission to write to a table (either by UPDATE or INSERT) but 
> allow EXECUTE permission on a Function that writes to the table ?
> 
> The reason I want to do this is so that I can perform certain checks on 
> the data that is being written before I allow it to be written.
> 
> Cheers DayoJ
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
> 
> !DSPAM:14,4402ee2c160447970214199!
> 
> 
> 

_________________________________________________________
This mail sent using V-webmail - http://www.v-webmail.org

view thread (5+ messages)  latest in thread

Message-ID: <ivcicf.enc6d9@webmail2.mailnetwork.co.uk>
Permalink:  ../ivcicf.enc6d9@webmail2.mailnetwork.co.uk/
Also on:    postgresql.org/message-id/ivcicf.enc6d9@webmail2.mailnetwork.co.uk

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: andy.shellam@mailnetwork.co.uk, dayoj@cleanjohn.net
  Subject: Re: Priviliges and Roles
  In-Reply-To: <ivcicf.enc6d9@webmail2.mailnetwork.co.uk>
  References: <4402EC0C.9030903@cleanjohn.net> <ivcicf.enc6d9@webmail2.mailnetwork.co.uk>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox