Re: User Privileges

From: Jens Hartwig <jhartwig(at)debis(dot)com>
To: "W(dot) van den Akker" <wvdakker(at)wilsoft(dot)nl>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: User Privileges
Date: 2000-12-28 09:33:46
Message-ID: 3A4B08FA.20A07F52@debis.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

the information can be found in the system-table-column PG_CLASS.RELACL:

SELECT RELACL
FROM PG_CLASS
WHERE RELNAME = 't_dummy';

The result seems to be an array of granted permissions, so you should
treat it is an array and look for the appropriate user- or group-name.

Hope this helps ...

Regards, Jens

"W. van den Akker" schrieb:
>
> How do I retrieve this privilages?
> I want to disable menu-options within a program. For that I have to
> retrieve the privilages for some tables.
>
> gr,
>
> Willem
>
> ----- Original Message -----
> From: "Dan Wilson" <phpPgAdmin(at)acucore(dot)com>
> To: "Niral Trivedi" <niral(dot)trivedi(at)insage(dot)com>;
> <pgsql-general(at)postgresql(dot)org>
> Sent: Tuesday, December 26, 2000 7:25 PM
> Subject: Re: [GENERAL] User Privileges
>
> > > For example I have 5 tables in database A. And now I want to give
> > > SELECT/UPDATE/INSERT privileges to a user to all 5 tables. But according
> > to
> > > documentation, I have to execute 'GRANT' query 3 times(for
> > > select/update/insert) per table. meaning total of 15 times!!!!
> >
> > That's incorrect... you can do it all in one statement:
> >
> > GRANT select,update,insert TO "<username>" ON table_1,table_2,table_3,etc
> >
> > http://www.postgresql.org/users-lounge/docs/7.0/user/sql-grant.htm
> >
> > -Dan
> >
> >
> >

=============================================
Jens Hartwig
---------------------------------------------
debis Systemhaus GEI mbH
10875 Berlin
Tel. : +49 (0)30 2554-3282
Fax : +49 (0)30 2554-3187
Mobil : +49 (0)170 167-2648
E-Mail : jhartwig(at)debis(dot)com
=============================================

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dan Wilson 2000-12-28 09:42:12 Re: User Privileges
Previous Message Stefano Bargioni 2000-12-28 08:53:02 Cost of max