pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gaetano Mendola <mendola@bigfoot.com>
To: pgsql-admin@postgresql.org
Subject: Permission on Views
Date: Wed, 9 Apr 2003 13:52:35 +0200
Message-ID: <b711hu$1g25$1@news.hub.org> (raw)

Hi all,
I'm going to use the Postgres permission features.

I found a not simmetrical behavior about permission on view and function.
Let me explain:

If I use the view/table T  inside the view V is enough give the select
permission on view V.

If I user the view/table T inside the funcion F is enough declare F with
the "Secuity definer" attribute and of course give the execution permission.

In these two cases all is working fine, the following case have some
problems:


If the view V use a function F.

In this last case is not enough have the select permisson on V but you
should
give also the Execution permission on F!!!

This fact are driving us to put
1) Select permission on V
2) Exceute permission + Security Definer attr on F.


why this behavior? Are you thing that in version 7.4 will exist a sort of
Security definer for views ?



Regards
Gaetano Mendola




Message-ID: <b711hu$1g25$1@news.hub.org>
Permalink:  ../b711hu$1g25$1@news.hub.org/
Also on:    postgresql.org/message-id/b711hu$1g25$1@news.hub.org

 · 

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: mendola@bigfoot.com
  Subject: Re: Permission on Views
  In-Reply-To: <b711hu$1g25$1@news.hub.org>
  References: <b711hu$1g25$1@news.hub.org>

* 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