Received: from mail.tgd.net (mail.tgd.net [209.81.25.10]) by postgresql.org (Postfix) with ESMTP id 420DF4759A1 for ; Thu, 21 Feb 2002 21:06:24 -0500 (EST) Received: by mail.tgd.net (Postfix, from userid 1001) id C4C2D20F05; Thu, 21 Feb 2002 18:06:27 -0800 (PST) Date: Thu, 21 Feb 2002 18:06:27 -0800 From: Sean Chittenden To: Denis Chavez Cc: pgsql-admin@postgresql.org Subject: Re: About groups in postgres Message-ID: <20020221180627.A4271@ninja1.internal> References: <12952.1014322125@www32.gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <12952.1014322125@www32.gmx.net>; from "dnchavez@gmx.net" on Thu, Feb 21, 2002 at = 09:08:45PM X-PGP-Key: 0x1EDDFAAD X-PGP-Fingerprint: C665 A17F 9A56 286C 5CFB 1DEA 9F4F 5CEF 1EDD FAAD X-Web-Homepage: http://sean.chittenden.org/ X-Archive-Number: 200202/290 X-Sequence-Number: 3443 > 1) Is there any way of asking postgres the groups a user account > belongs to? You can figure this out, but I don't know of a nice clean way of doing it. Check out the pg_group table. There's got to be a 'value in array' type function that could make that an easy select. > 2) Let's suppose I have a user account that belongs to several > groups, how can I tell postgres that I want access the database but > just with the priviledges of one of the groups? You don't want the intersection of permissions? I'd create a new user account: I don't know that there's a way to rescind privs that have been granted to you. -sc -- Sean Chittenden