Re: [GENERAL] Get the list of permissions/privileges on schema - Mailing list pgsql-novice

From Sergey Konoplev
Subject Re: [GENERAL] Get the list of permissions/privileges on schema
Date
Msg-id c3a7de1f1003250224q79368a2as57c8d1d0719dfa79@mail.gmail.com
Whole thread Raw
In response to Re: [GENERAL] Get the list of permissions/privileges on schema  (Ashesh Vashi <ashesh.vashi@enterprisedb.com>)
List pgsql-novice
On 25 March 2010 12:14, Ashesh Vashi <ashesh.vashi@enterprisedb.com> wrote:
> You should look into the pg_class table : relacl attribute for the
> permissions on any object.

Is it correct to set it directly?

> On Thu, Mar 25, 2010 at 2:37 PM, dipti shah <shahdipti1980@gmail.com> wrote:
>> Could any one please tell me how to get list of all the permissions on the
>> schema (or any postgresql objects), stored them somewhere before executing
>> stored procedure and then restore them?

May be you are looking for something like SECURITY DEFINER option?
http://www.postgresql.org/docs/8.4/interactive/sql-createfunction.html

--
Sergey Konoplev

Blog: http://gray-hemp.blogspot.com /
Linkedin: http://ru.linkedin.com/in/grayhemp /
JID/GTalk: gray.ru@gmail.com / Skype: gray-hemp / ICQ: 29353802

pgsql-novice by date:

Previous
From: Ashesh Vashi
Date:
Subject: Re: [GENERAL] Get the list of permissions/privileges on schema
Next
From: Łukasz Dejneka
Date:
Subject: Using HStore type in TSearch