pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: ListSrv <listsrv@wilsoft.nl>
To: pgsql-admin@postgresql.org
Subject: Tablerights for User in Group
Date: Mon, 12 Jan 2004 22:06:01 +0100
Message-ID: <40030C39.5030806@wilsoft.nl> (raw)
In-Reply-To: <8utLb.27735$Tz1.15693@news.chello.at>
References: <8utLb.27735$Tz1.15693@news.chello.at>

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.








view thread (3+ messages)  latest in thread

Message-ID: <40030C39.5030806@wilsoft.nl>
Permalink:  ../40030C39.5030806@wilsoft.nl/
Also on:    postgresql.org/message-id/40030C39.5030806@wilsoft.nl

 · 

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: listsrv@wilsoft.nl
  Subject: Re: Tablerights for User in Group
  In-Reply-To: <40030C39.5030806@wilsoft.nl>
  References: <8utLb.27735$Tz1.15693@news.chello.at> <40030C39.5030806@wilsoft.nl>

* 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