Tablerights for User in Group - Mailing list pgsql-admin

From ListSrv
Subject Tablerights for User in Group
Date
Msg-id 40030C39.5030806@wilsoft.nl
Whole thread Raw
In response to cannot configure postgres  (Michael Stenitzer <jenoe@gmx.at>)
Responses Re: Tablerights for User in Group  (Bruno Wolff III <bruno@wolff.to>)
List pgsql-admin
Hi,

Is it possible to query de backend database for retrieving rights of an
user in a group for a
table?

I know that the userrights can be retrieved as:

SELECT relacl FROM pg_class WHERE relname = '[table name]'

and the users-id in groups as:

SELECT grolist from pg_group where groname = 'group'

the user-id;

SELECT usesysid from pg_user where usename = 'name';

How can I query

SELECT rights FROM table WHERE usename = 'name' AND relname = '[tablename]' ....


Otherwise I have to query the backend and parse and parse and parse .... the results.

TIA

WIllem.






pgsql-admin by date:

Previous
From: Sai Hertz And Control Systems
Date:
Subject: Re: [HACKERS] IEEE 754
Next
From: Bruno Wolff III
Date:
Subject: Re: Tablerights for User in Group