X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 34057D1B43F for ; Mon, 12 Jan 2004 21:14:21 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 64920-06 for ; Mon, 12 Jan 2004 17:13:51 -0400 (AST) Received: from linux.wilsoft.nl (wilsoft.xs4all.nl [80.127.65.128]) by svr1.postgresql.org (Postfix) with ESMTP id 69947D1D8A0 for ; Mon, 12 Jan 2004 17:13:33 -0400 (AST) Received: from wilsoft.nl (pentium.wilsoft.nl [192.168.4.5]) (authenticated bits=0) by linux.wilsoft.nl (8.12.9/8.12.9/Debian-5) with ESMTP id i0CL6231030118 for ; Mon, 12 Jan 2004 22:06:02 +0100 Message-ID: <40030C39.5030806@wilsoft.nl> Date: Mon, 12 Jan 2004 22:06:01 +0100 From: ListSrv User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Tablerights for User in Group References: <8utLb.27735$Tz1.15693@news.chello.at> In-Reply-To: <8utLb.27735$Tz1.15693@news.chello.at> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-WilSoft-MailScanner: Found to be clean X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/92 X-Sequence-Number: 11955 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.